18 #ifndef itkMaskedMovingHistogramImageFilter_h
19 #define itkMaskedMovingHistogramImageFilter_h
43 template <
typename TInputImage,
typename TMaskImage,
typename TOutputImage,
typename TKernel,
typename THistogram>
82 this->SetNthInput(1, const_cast<TMaskImage *>(input));
96 this->SetInput(input);
103 this->SetMaskImage(input);
107 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
120 using OffsetMapType =
typename std::map<OffsetType, OffsetListType, Functor::LexicographicCompare>;
127 AllocateOutputs()
override;
130 using Superclass::MakeOutput;
144 SetGenerateOutputMask(
bool);
146 itkGetConstMacro(GenerateOutputMask,
bool);
147 itkBooleanMacro(GenerateOutputMask);
160 DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
164 PrintSelf(std::ostream & os,
Indent indent)
const override;
167 pushHistogram(HistogramType & histogram,
168 const OffsetListType * addedList,
169 const OffsetListType * removedList,
172 const InputImageType * inputImage,
173 const MaskImageType * maskImage,
187 #ifndef ITK_MANUAL_INSTANTIATION
188 # include "itkMaskedMovingHistogramImageFilter.hxx"