Go to the documentation of this file.
18 #ifndef sitkRichardsonLucyDeconvolutionImageFilter_h
19 #define sitkRichardsonLucyDeconvolutionImageFilter_h
81 SITK_RETURN_SELF_TYPE_HEADER
SetNumberOfIterations (
int NumberOfIterations ) { this->m_NumberOfIterations = NumberOfIterations;
return *
this; }
95 SITK_RETURN_SELF_TYPE_HEADER
NormalizeOn() {
return this->SetNormalize(
true); }
96 SITK_RETURN_SELF_TYPE_HEADER
NormalizeOff() {
return this->SetNormalize(
false); }
102 typedef enum {
ZERO_PAD,ZERO_FLUX_NEUMANN_PAD,PERIODIC_PAD} BoundaryConditionType;\
112 typedef enum {SAME,VALID} OutputRegionModeType;\
123 std::string
GetName()
const {
return std::string (
"RichardsonLucyDeconvolutionImageFilter"); }
126 std::string ToString()
const;
138 template <
class TImageType>
Image ExecuteInternal (
const Image& image1,
const Image& image2 );
146 int m_NumberOfIterations{1};
149 bool m_Normalize{
false};
The Image class for SimpleITK.
Image Normalize(const Image &image1)
Normalize an image by setting its mean to zero and variance to one.
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Image(Self::*)(const Image &image1, const Image &image2) MemberFunctionType
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Image RichardsonLucyDeconvolution(const Image &image1, const Image &image2, int numberOfIterations=1, bool normalize=false, RichardsonLucyDeconvolutionImageFilter::BoundaryConditionType boundaryCondition=itk::simple::RichardsonLucyDeconvolutionImageFilter::ZERO_FLUX_NEUMANN_PAD, RichardsonLucyDeconvolutionImageFilter::OutputRegionModeType outputRegionMode=itk::simple::RichardsonLucyDeconvolutionImageFilter::SAME)
Deconvolve an image using the Richardson-Lucy deconvolution algorithm.
Self & SetOutputRegionMode(OutputRegionModeType OutputRegionMode)
BasicPixelIDTypeList PixelIDTypeList
#define SITKBasicFilters_EXPORT
bool GetNormalize() const
int GetNumberOfIterations() const
BoundaryConditionType GetBoundaryCondition() const
The base interface for SimpleITK filters that take one input image.
Self & SetBoundaryCondition(BoundaryConditionType BoundaryCondition)
Self & SetNumberOfIterations(int NumberOfIterations)
std::string GetName() const
Self & SetNormalize(bool Normalize)
OutputRegionModeType GetOutputRegionMode() const
Deconvolve an image using the Richardson-Lucy deconvolution algorithm.