18 #ifndef itkMaskedMovingHistogramImageFilter_h
19 #define itkMaskedMovingHistogramImageFilter_h
43 template<
typename TInputImage,
typename TMaskImage,
typename TOutputImage,
typename TKernel,
typename THistogram >
81 this->SetNthInput( 1, const_cast< TMaskImage * >( input ) );
93 this->SetInput(input);
99 this->SetMaskImage(input);
103 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
122 void AllocateOutputs()
override;
125 using Superclass::MakeOutput;
137 void SetGenerateOutputMask(
bool);
139 itkGetConstMacro(GenerateOutputMask,
bool);
140 itkBooleanMacro(GenerateOutputMask);
150 void DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
153 void PrintSelf(std::ostream & os,
Indent indent)
const override;
155 void pushHistogram(HistogramType & histogram,
156 const OffsetListType *addedList,
157 const OffsetListType *removedList,
160 const InputImageType *inputImage,
161 const MaskImageType *maskImage,
175 #ifndef ITK_MANUAL_INSTANTIATION
176 #include "itkMaskedMovingHistogramImageFilter.hxx"
typename TInputImage::SizeType RadiusType
typename TInputImage::PixelType PixelType
Superclass::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
MaskPixelType m_BackgroundMaskValue
typename std::map< OffsetType, OffsetListType, Functor::LexicographicCompare > OffsetMapType
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
MaskImageType * GetMaskImage()
OutputPixelType m_FillValue
typename TInputImage::IndexType IndexType
Implements a generic moving histogram algorithm.
void SetMaskImage(const MaskImageType *input)
typename TOutputImage::PixelType OutputPixelType
typename TInputImage::RegionType RegionType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
MaskPixelType m_MaskValue
TInputImage InputImageType
typename TInputImage::OffsetType OffsetType
typename KernelType::ConstIterator KernelIteratorType
void SetInput1(const InputImageType *input)
ImageBaseType::SizeType SizeType
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
typename TInputImage::SizeType SizeType
TOutputImage OutputImageType
typename TInputImage::PixelType InputPixelType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
virtual void ConfigureHistogram(THistogram &)
bool m_GenerateOutputMask
Control indentation during Print() invocation.
Order Index instances lexicographically.
ImageBaseType::RegionType RegionType
Implements a generic moving histogram algorithm.
Base class for all data objects in ITK.
void SetInput2(const MaskImageType *input)
typename MaskImageType::PixelType MaskPixelType
typename std::list< OffsetType > OffsetListType