擅长:python、mysql、java
<p>关于itk<;->;Numpy转换的简短博客<a href="https://blog.kitware.com/convert-itk-data-structures-to-numpy-arrays/" rel="nofollow noreferrer">post</a>。您应该将它与来自这个<a href="https://blog.kitware.com/itk-python-image-pixel-types/" rel="nofollow noreferrer">one</a>的信息结合起来。我认为把scoreMatrixItk写入文件是不必要的。您应该能够执行<code>thresholdFilter.SetInput(scoreMatrixItk)</code>,也许在更改创建<code>thresholdFilter</code>时使用的类型。因为您使用的是无符号字符,所以不需要<code>rescaler</code>,除非您想将强度范围从0-50增加到0-255。我不知道为什么你现在出错了。在</p>