18 #ifndef itkKappaSigmaThresholdImageFilter_h
19 #define itkKappaSigmaThresholdImageFilter_h
45 template<
typename TInputImage,
46 typename TMaskImage = Image< unsigned char, TInputImage::ImageDimension >,
47 class TOutputImage = TInputImage >
104 itkSetMacro(SigmaFactor,
double);
105 itkGetConstMacro(SigmaFactor,
double);
109 itkSetMacro(NumberOfIterations,
unsigned int);
110 itkGetConstMacro(NumberOfIterations,
unsigned int);
113 #ifdef ITK_USE_CONCEPT_CHECKING
126 this->SetNthInput( 1, const_cast< MaskImageType * >( input ) );
138 this->SetInput(input);
144 this->SetMaskImage(input);
150 void PrintSelf(std::ostream & os,
Indent indent)
const override;
152 void GenerateInputRequestedRegion()
override;
154 void GenerateData()
override;
166 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
167 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
171 double m_SigmaFactor{ 2 };
172 unsigned int m_NumberOfIterations{ 2 };
179 #ifndef ITK_MANUAL_INSTANTIATION
180 #include "itkKappaSigmaThresholdImageFilter.hxx"
OutputPixelType m_InsideValue
typename TInputImage::SizeType InputSizeType
typename OutputImageType::Pointer OutputImagePointer
typename TOutputImage::IndexType OutputIndexType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename TOutputImage::PixelType OutputPixelType
Base class for all process objects that output image data.
TInputImage InputImageType
MaskPixelType m_MaskValue
typename InputImageType::Pointer InputImagePointer
typename TOutputImage::SizeType OutputSizeType
ImageBaseType::SizeType SizeType
void SetInput1(const TInputImage *input)
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
Computes a Kappa-Sigma-Clipping threshold for an image.
typename TMaskImage::Pointer MaskImagePointer
typename TInputImage::IndexType InputIndexType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
Threshold an image using Kappa-Sigma-Clipping.
typename TInputImage::PixelType InputPixelType
typename InputImageType::RegionType InputImageRegionType
Base class for filters that take an image as input and produce an image as output.
void SetInput2(const MaskImageType *input)
Control indentation during Print() invocation.
typename TMaskImage::PixelType MaskPixelType
ImageBaseType::RegionType RegionType
InputPixelType m_Threshold
#define itkConceptMacro(name, concept)
OutputPixelType m_OutsideValue
Base class for all data objects in ITK.
const MaskImageType * GetMaskImage() const
void SetMaskImage(const MaskImageType *input)