18 #ifndef itkLabelMapOverlayImageFilter_h
19 #define itkLabelMapOverlayImageFilter_h
51 template<
typename TLabelMap,
typename TFeatureImage,
typename TOutputImage=Image< RGBPixel<
typename TFeatureImage::PixelType >, TFeatureImage::ImageDimension > >
71 using LabelType =
typename LabelObjectType::LabelType;
92 static constexpr
unsigned int InputImageDimension = TLabelMap::ImageDimension;
93 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
94 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
107 this->SetNthInput( 1, const_cast<TFeatureImage *>(input) );
119 this->SetInput( input );
125 this->SetFeatureImage( input );
131 itkSetMacro( Opacity,
double );
132 itkGetConstReferenceMacro( Opacity,
double );
140 if ( m_Functor != functor )
157 void GenerateInputRequestedRegion()
override;
160 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output))
override;
162 void GenerateData()
override;
164 void DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
169 Superclass::DynamicThreadedGenerateData(outputRegion);
172 void ThreadedProcessLabelObject( LabelObjectType * labelObject )
override;
174 void GenerateOutputInformation()
override;
176 void PrintSelf(std::ostream& os,
Indent indent)
const override;
186 #ifndef ITK_MANUAL_INSTANTIATION
187 #include "itkLabelMapOverlayImageFilter.hxx"
void SetFeatureImage(const TFeatureImage *input)
typename FeatureImageType::ConstPointer FeatureImageConstPointer
typename LabelMapType::ConstPointer LabelMapConstPointer
typename OutputImageType::Pointer OutputImagePointer
void SetInput1(const TLabelMap *input)
typename LabelMapType::LabelObjectType LabelObjectType
TFeatureImage FeatureImageType
void SuperclassDynamicTGD(const OutputImageRegionType &outputRegion)
typename FeatureImageType::PixelType FeatureImagePixelType
virtual void SetFunctor(const FunctorType &functor)
typename FeatureImageType::Pointer FeatureImagePointer
typename Functor::LabelOverlayFunctor< FeatureImagePixelType, LabelMapPixelType, OutputImagePixelType > FunctorType
typename OutputImageType::IndexType IndexType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
const FeatureImageType * GetFeatureImage()
typename LabelMapType::PixelType LabelMapPixelType
typename OutputImageType::RegionType RegionType
Base class for all process objects that output image data.
const FunctorType & GetFunctor() const
typename OutputImageType::ConstPointer OutputImageConstPointer
typename OutputImageType::PixelType OutputImagePixelType
FunctorType & GetFunctor()
ImageBaseType::SizeType SizeType
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
TOutputImage OutputImageType
typename LabelObjectType::LengthType LengthType
Apply a colormap to a label map and superimpose it on an image.
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.
void SetInput2(const TFeatureImage *input)
typename LabelMapType::Pointer LabelMapPointer
Base class for filters that take an image as input and produce an image as output.
typename LabelObjectType::LabelType LabelType
Control indentation during Print() invocation.
typename LabelMapType::RegionType LabelMapRegionType
ImageBaseType::RegionType RegionType
typename FeatureImageType::RegionType FeatureImageRegionType
Base class for all data objects in ITK.
typename OutputImageType::SizeType SizeType