Hello,
I try to implement several filters in SITK for 3D images, but I do get an error with the Wiener deconvolution image filter. (The Gaussian, median and curvature flow are working )
This is my function:
def calc_wiener(img, cond=2, var=0.2):
""" Wiener Deconvolution image filter. """
blurFilter = sitk.WienerDeconvolutionImageFilter()
blurFilter.SetBoundaryCondition(cond)
blurFilter.SetNoiseVariance(var)
imgSmooth = blurFilter.Execute(img)
return imgSmooth
And I do get this error:
NotImplementedError: Wrong number or type of arguments for overloaded function 'WienerDeconvolutionImageFilter_Execute'.
Possible C/C++ prototypes are:
itk::simple::WienerDeconvolutionImageFilter::Execute(itk::simple::Image const &,itk::simple::Image const &)
itk::simple::WienerDeconvolutionImageFilter::Execute(itk::simple::Image const &,itk::simple::Image const &,double,bool,itk::simple::WienerDeconvolutionImageFilter::BoundaryConditionType,itk::simple::WienerDeconvolutionImageFilter::OutputRegionModeType)
Does anyone know how to solve this error?