18 #ifndef itkLabelMapContourOverlayImageFilter_h
19 #define itkLabelMapContourOverlayImageFilter_h
56 template<
typename TLabelMap,
typename TFeatureImage,
typename TOutputImage=Image< RGBPixel<
typename TFeatureImage::PixelType >, TFeatureImage::ImageDimension > >
76 using LabelType =
typename LabelObjectType::LabelType;
96 static constexpr
unsigned int LabelMapDimension = TLabelMap::ImageDimension;
97 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
98 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
109 HIGH_LABEL_ON_TOP = 0,
124 this->SetNthInput( 1, const_cast<TFeatureImage *>(input) );
136 this->SetInput( input );
142 this->SetFeatureImage( input );
148 itkSetMacro( Opacity,
double );
149 itkGetConstReferenceMacro( Opacity,
double );
154 itkSetMacro( Type,
int );
155 itkGetConstReferenceMacro( Type,
int );
160 itkSetMacro( Priority,
int );
161 itkGetConstReferenceMacro( Priority,
int );
166 itkSetMacro( DilationRadius,
SizeType );
167 itkGetConstReferenceMacro( DilationRadius,
SizeType );
172 itkSetMacro( ContourThickness,
SizeType );
173 itkGetConstReferenceMacro( ContourThickness,
SizeType );
178 itkSetMacro( SliceDimension,
int );
179 itkGetConstReferenceMacro( SliceDimension,
int );
187 if ( m_Functor != functor )
204 void GenerateInputRequestedRegion()
override;
207 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output))
override;
209 void BeforeThreadedGenerateData()
override;
211 void DynamicThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread)
override;
216 Superclass::DynamicThreadedGenerateData(outputRegion);
219 void GenerateData()
override;
221 void ThreadedProcessLabelObject( LabelObjectType * labelObject )
override;
223 void GenerateOutputInformation()
override;
225 void PrintSelf(std::ostream& os,
Indent indent)
const override;
247 #ifndef ITK_MANUAL_INSTANTIATION
248 #include "itkLabelMapContourOverlayImageFilter.hxx"
void SetInput1(TLabelMap *input)
FunctorType & GetFunctor()
typename OutputImageType::Pointer OutputImagePointer
LabelMapType * GetLabelMap() override
SizeType m_DilationRadius
typename Functor::LabelOverlayFunctor< FeatureImagePixelType, LabelMapPixelType, OutputImagePixelType > FunctorType
typename FeatureImageType::RegionType FeatureImageRegionType
typename FeatureImageType::ConstPointer FeatureImageConstPointer
TFeatureImage FeatureImageType
void SetFeatureImage(TFeatureImage *input)
Apply a colormap to the contours (outlines) of each object in a label map and superimpose it on top o...
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename LabelMapType::PixelType LabelMapPixelType
Base class for all process objects that output image data.
typename OutputImageType::RegionType RegionType
typename LabelMapType::LabelObjectType LabelObjectType
typename OutputImageType::PixelType OutputImagePixelType
virtual void SetFunctor(const FunctorType &functor)
ImageBaseType::SizeType SizeType
typename FeatureImageType::PixelType FeatureImagePixelType
void SetInput2(TFeatureImage *input)
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
typename OutputImageType::SizeType SizeType
TOutputImage OutputImageType
void SuperclassDynamicTGD(const OutputImageRegionType &outputRegion)
Base class for filters that take an image as input and overwrite that image as the output...
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
typename LabelMapType::Pointer LabelMapPointer
typename FeatureImageType::Pointer FeatureImagePointer
typename LabelMapType::RegionType LabelMapRegionType
typename OutputImageType::IndexType IndexType
SizeType m_ContourThickness
Base class for filters that take an image as input and produce an image as output.
typename LabelObjectType::LabelType LabelType
LabelMapPointer m_TempImage
Control indentation during Print() invocation.
ImageBaseType::RegionType RegionType
FeatureImageType * GetFeatureImage()
typename LabelMapType::ConstPointer LabelMapConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
Base class for all data objects in ITK.
const FunctorType & GetFunctor() const