18 #ifndef itkLabelMapContourOverlayImageFilter_h
19 #define itkLabelMapContourOverlayImageFilter_h
58 template <
typename TLabelMap,
59 typename TFeatureImage,
60 typename TOutputImage = Image<RGBPixel<typename TFeatureImage::PixelType>, TFeatureImage::ImageDimension>>
79 using LabelType =
typename LabelObjectType::LabelType;
100 static constexpr
unsigned int LabelMapDimension = TLabelMap::ImageDimension;
101 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
102 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
113 HIGH_LABEL_ON_TOP = 0,
128 this->SetNthInput(1, const_cast<TFeatureImage *>(input));
135 return itkDynamicCastInDebugMode<FeatureImageType *>(const_cast<DataObject *>(this->
ProcessObject::GetInput(1)));
142 this->SetInput(input);
149 this->SetFeatureImage(input);
155 itkSetMacro(Opacity,
double);
156 itkGetConstReferenceMacro(Opacity,
double);
161 itkSetMacro(Type,
int);
162 itkGetConstReferenceMacro(Type,
int);
167 itkSetMacro(Priority,
int);
168 itkGetConstReferenceMacro(Priority,
int);
173 itkSetMacro(DilationRadius,
SizeType);
174 itkGetConstReferenceMacro(DilationRadius,
SizeType);
179 itkSetMacro(ContourThickness,
SizeType);
180 itkGetConstReferenceMacro(ContourThickness,
SizeType);
185 itkSetMacro(SliceDimension,
int);
186 itkGetConstReferenceMacro(SliceDimension,
int);
195 if (m_Functor != functor)
221 GenerateInputRequestedRegion()
override;
225 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
228 BeforeThreadedGenerateData()
override;
231 DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
237 Superclass::DynamicThreadedGenerateData(outputRegion);
241 GenerateData()
override;
244 ThreadedProcessLabelObject(LabelObjectType * labelObject)
override;
247 GenerateOutputInformation()
override;
250 PrintSelf(std::ostream & os,
Indent indent)
const override;
273 #ifndef ITK_MANUAL_INSTANTIATION
274 # include "itkLabelMapContourOverlayImageFilter.hxx"