18 #ifndef itkMaskedMovingHistogramImageFilter_h
19 #define itkMaskedMovingHistogramImageFilter_h
42 template<
typename TInputImage,
typename TMaskImage,
typename TOutputImage,
typename TKernel,
typename THistogram >
78 this->SetNthInput( 1, const_cast< TMaskImage * >( input ) );
90 this->SetInput(input);
96 this->SetMaskImage(input);
100 itkStaticConstMacro(ImageDimension,
unsigned int,
101 TInputImage::ImageDimension);
121 void AllocateOutputs() ITK_OVERRIDE;
128 itkGetConstMacro(FillValue, OutputPixelType);
131 itkGetConstMacro(MaskValue, MaskPixelType);
133 itkSetMacro(BackgroundMaskValue, MaskPixelType);
134 itkGetConstMacro(BackgroundMaskValue, MaskPixelType);
136 void SetGenerateOutputMask(
bool);
138 itkGetConstMacro(GenerateOutputMask,
bool);
139 itkBooleanMacro(GenerateOutputMask);
142 virtual
void ConfigureHistogram(THistogram &) {}
149 void ThreadedGenerateData(
const OutputImageRegionType &
150 outputRegionForThread,
153 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
155 void pushHistogram(HistogramType & histogram,
156 const OffsetListType *addedList,
157 const OffsetListType *removedList,
158 const RegionType & inputRegion,
159 const RegionType & kernRegion,
160 const InputImageType *inputImage,
161 const MaskImageType *maskImage,
177 #ifndef ITK_MANUAL_INSTANTIATION
178 #include "itkMaskedMovingHistogramImageFilter.hxx"
TInputImage::PixelType PixelType
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
MaskPixelType m_BackgroundMaskValue
MaskImageType * GetMaskImage()
OutputPixelType m_FillValue
Implements a generic moving histogram algorithm.
void SetMaskImage(const MaskImageType *input)
Order Offset instances lexicographically.
~MaskedMovingHistogramImageFilter() override
MovingHistogramImageFilterBase< TInputImage, TOutputImage, TKernel > Superclass
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
TOutputImage::PixelType OutputPixelType
TInputImage::IndexType IndexType
Base class for all process objects that output image data.
MaskPixelType m_MaskValue
MaskImageType::PixelType MaskPixelType
MaskedMovingHistogramImageFilter Self
TInputImage::OffsetType OffsetType
TInputImage::SizeType SizeType
TInputImage::PixelType InputPixelType
void SetInput1(const InputImageType *input)
TInputImage::OffsetType OffsetType
KernelType::ConstIterator KernelIteratorType
std::list< OffsetType > OffsetListType
SmartPointer< const Self > ConstPointer
TInputImage InputImageType
TOutputImage::PixelType OutputPixelType
unsigned int ThreadIdType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
SmartPointer< Self > Pointer
std::map< OffsetType, OffsetListType, typename Functor::OffsetLexicographicCompare< itkGetStaticConstMacro(ImageDimension) > > OffsetMapType
std::list< OffsetType > OffsetListType
Superclass::OutputImageRegionType OutputImageRegionType
bool m_GenerateOutputMask
Control indentation during Print() invocation.
ImageBaseType::SizeType SizeType
TInputImage InputImageType
TInputImage::RegionType RegionType
Implements a generic moving histogram algorithm.
Base class for all data objects in ITK.
void SetInput2(const MaskImageType *input)
TOutputImage OutputImageType
KernelType::SizeType RadiusType
ImageBaseType::IndexType IndexType