|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkLabelMapOverlayImageFilter_h
19 #define itkLabelMapOverlayImageFilter_h
56 template <
typename TLabelMap,
57 typename TFeatureImage,
58 typename TOutputImage = Image<RGBPixel<typename TFeatureImage::PixelType>, TFeatureImage::ImageDimension>>
77 using LabelType =
typename LabelObjectType::LabelType;
99 static constexpr
unsigned int InputImageDimension = TLabelMap::ImageDimension;
100 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
101 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
114 this->SetNthInput(1, const_cast<TFeatureImage *>(input));
118 const FeatureImageType *
128 this->SetInput(input);
135 this->SetFeatureImage(input);
141 itkSetMacro(Opacity,
double);
142 itkGetConstReferenceMacro(Opacity,
double);
151 if (m_Functor != functor)
177 GenerateInputRequestedRegion()
override;
181 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
184 GenerateData()
override;
187 DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
193 Superclass::DynamicThreadedGenerateData(outputRegion);
197 ThreadedProcessLabelObject(LabelObjectType * labelObject)
override;
200 GenerateOutputInformation()
override;
203 PrintSelf(std::ostream & os,
Indent indent)
const override;
213 #ifndef ITK_MANUAL_INSTANTIATION
214 # include "itkLabelMapOverlayImageFilter.hxx"
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
typename LabelMapType::LabelObjectType LabelObjectType
typename OutputImageType::Pointer OutputImagePointer
virtual void SetFunctor(const FunctorType &functor)
void SetInput2(const TFeatureImage *input)
ImageBaseType::SizeType SizeType
Control indentation during Print() invocation.
typename LabelObjectType::LengthType LengthType
ImageBaseType::IndexType IndexType
Base class for all process objects that output image data.
typename FeatureImageType::ConstPointer FeatureImageConstPointer
Base class for filters that take an image as input and overwrite that image as the output.
ImageBaseType::RegionType RegionType
typename FeatureImageType::RegionType FeatureImageRegionType
void SuperclassDynamicTGD(const OutputImageRegionType &outputRegion)
typename FeatureImageType::PixelType FeatureImagePixelType
typename OutputImageType::ConstPointer OutputImageConstPointer
typename LabelMapType::RegionType LabelMapRegionType
Functor::Add2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
typename Functor::LabelOverlayFunctor< FeatureImagePixelType, LabelMapPixelType, OutputImagePixelType > FunctorType
typename OutputImageType::RegionType OutputImageRegionType
void SetInput1(const TLabelMap *input)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
typename OutputImageType::RegionType RegionType
void SetFeatureImage(const TFeatureImage *input)
typename LabelMapType::PixelType LabelMapPixelType
typename LabelMapType::Pointer LabelMapPointer
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::IndexType IndexType
const FeatureImageType * GetFeatureImage()
Apply a colormap to a label map and superimpose it on an image.
typename LabelMapType::ConstPointer LabelMapConstPointer
TFeatureImage FeatureImageType
typename LabelObjectType::LabelType LabelType
const FunctorType & GetFunctor() const
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
FunctorType & GetFunctor()
TOutputImage OutputImageType
Base class for all data objects in ITK.
typename FeatureImageType::Pointer FeatureImagePointer
typename OutputImageType::SizeType SizeType