18 #ifndef itkMaskedMovingHistogramImageFilter_h
19 #define itkMaskedMovingHistogramImageFilter_h
42 template<
typename TInputImage,
typename TMaskImage,
typename TOutputImage,
typename TKernel,
typename THistogram >
64 typedef typename TInputImage::SizeType
SizeType;
78 this->
SetNthInput( 1, const_cast< TMaskImage * >( input ) );
101 TInputImage::ImageDimension);
128 itkGetConstMacro(FillValue, OutputPixelType);
131 itkGetConstMacro(MaskValue, MaskPixelType);
133 itkSetMacro(BackgroundMaskValue, MaskPixelType);
134 itkGetConstMacro(BackgroundMaskValue, MaskPixelType);
138 itkGetConstMacro(GenerateOutputMask,
bool);
150 outputRegionForThread,
178 #ifndef ITK_MANUAL_INSTANTIATION
179 #include "itkMaskedMovingHistogramImageFilter.hxx"
TInputImage::PixelType PixelType
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
void AllocateOutputs() override
MaskPixelType m_BackgroundMaskValue
MaskImageType * GetMaskImage()
void SetInput1(InputImageType *input)
OutputPixelType m_FillValue
void operator=(const Self &)
Implements a generic moving histogram algorithm.
void SetGenerateOutputMask(bool)
Order Offset instances lexicographically.
void pushHistogram(HistogramType &histogram, const OffsetListType *addedList, const OffsetListType *removedList, const RegionType &inputRegion, const RegionType &kernRegion, const InputImageType *inputImage, const MaskImageType *maskImage, const IndexType currentIdx)
Superclass::OutputImageRegionType OutputImageRegionType
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
DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
MaskImageType::PixelType MaskPixelType
void SetMaskImage(MaskImageType *input)
MaskedMovingHistogramImageFilter Self
TInputImage::OffsetType OffsetType
~MaskedMovingHistogramImageFilter()
TInputImage::SizeType SizeType
virtual void SetInput(const InputImageType *image)
MaskedMovingHistogramImageFilter()
TInputImage::PixelType InputPixelType
void PrintSelf(std::ostream &os, Indent indent) const override
KernelType::ConstIterator KernelIteratorType
MaskImageType * GetOutputMask()
std::list< OffsetType > OffsetListType
SmartPointer< const Self > ConstPointer
TInputImage InputImageType
TOutputImage::PixelType OutputPixelType
unsigned int ThreadIdType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
static const unsigned int ImageDimension
SmartPointer< Self > Pointer
virtual void ConfigureHistogram(THistogram &)
std::map< OffsetType, OffsetListType, typename Functor::OffsetLexicographicCompare< itkGetStaticConstMacro(ImageDimension) > > OffsetMapType
Superclass::OutputImageRegionType OutputImageRegionType
bool m_GenerateOutputMask
Control indentation during Print() invocation.
virtual void SetNthInput(DataObjectPointerArraySizeType num, DataObject *input)
TInputImage InputImageType
TInputImage::RegionType RegionType
Implements a generic moving histogram algorithm.
Base class for all data objects in ITK.
void SetInput2(MaskImageType *input)
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
TOutputImage OutputImageType
KernelType::SizeType RadiusType