18 #ifndef itkMaskedMovingHistogramImageFilter_h
19 #define itkMaskedMovingHistogramImageFilter_h
42 template <
typename TInputImage,
typename TMaskImage,
typename TOutputImage,
typename TKernel,
typename THistogram>
81 this->SetNthInput(1, const_cast<TMaskImage *>(input));
95 this->SetInput(input);
102 this->SetMaskImage(input);
106 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
119 using OffsetMapType =
typename std::map<OffsetType, OffsetListType, Functor::LexicographicCompare>;
126 AllocateOutputs()
override;
129 using Superclass::MakeOutput;
143 SetGenerateOutputMask(
bool);
145 itkGetConstMacro(GenerateOutputMask,
bool);
146 itkBooleanMacro(GenerateOutputMask);
159 DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
163 PrintSelf(std::ostream & os,
Indent indent)
const override;
166 pushHistogram(HistogramType & histogram,
167 const OffsetListType * addedList,
168 const OffsetListType * removedList,
171 const InputImageType * inputImage,
172 const MaskImageType * maskImage,
186 #ifndef ITK_MANUAL_INSTANTIATION
187 # include "itkMaskedMovingHistogramImageFilter.hxx"