fftwimagefilter.py
来自「DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.」· Python 代码 · 共 21 行
PY
21 行
#
# Example on the use of the MeanImageFilter
#
import itk
from sys import argv
dim = 2
PixelType = itk.F
ImageType = itk.Image[PixelType, dim]
reader = itk.ImageFileReader[ImageType].New( FileName=argv[1] )
fftFilter = itk.FFTWRealToComplexConjugateImageFilter[PixelType, dim].New(reader)
fftFilter2 = itk.FFTWComplexConjugateToRealImageFilter[PixelType, dim].New(fftFilter)
cast = itk.CastImageFilter[ImageType, itk.Image[itk.UC, dim]].New( fftFilter2 )
itk.write(cast, argv[2])
print itk.size(fftFilter).GetElement(0), itk.size(fftFilter).GetElement(1)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?