18#ifndef itkLabelMapOverlayImageFilter_h
19#define itkLabelMapOverlayImageFilter_h
56template <
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)
193 Superclass::DynamicThreadedGenerateData(outputRegion);
213#ifndef ITK_MANUAL_INSTANTIATION
214# include "itkLabelMapOverlayImageFilter.hxx"
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Base class for filters that take an image as input and overwrite that image as the output.
Apply a colormap to a label map and superimpose it on an image.
typename OutputImageType::ConstPointer OutputImageConstPointer
typename OutputImageType::PixelType OutputImagePixelType
typename LabelMapType::ConstPointer LabelMapConstPointer
void SetInput1(const TLabelMap *input)
void SetFeatureImage(const TFeatureImage *input)
typename LabelMapType::RegionType LabelMapRegionType
void SuperclassDynamicTGD(const OutputImageRegionType &outputRegion)
typename LabelObjectType::LengthType LengthType
typename LabelMapType::Pointer LabelMapPointer
typename FeatureImageType::ConstPointer FeatureImageConstPointer
typename LabelObjectType::LabelType LabelType
typename OutputImageType::RegionType OutputImageRegionType
typename OutputImageType::RegionType RegionType
typename LabelMapType::PixelType LabelMapPixelType
void ThreadedProcessLabelObject(LabelObjectType *labelObject) override
void GenerateInputRequestedRegion() override
TOutputImage OutputImageType
virtual void SetFunctor(const FunctorType &functor)
const FunctorType & GetFunctor() const
FunctorType & GetFunctor()
void GenerateOutputInformation() override
typename Functor::LabelOverlayFunctor< FeatureImagePixelType, LabelMapPixelType, OutputImagePixelType > FunctorType
typename OutputImageType::Pointer OutputImagePointer
typename FeatureImageType::Pointer FeatureImagePointer
typename FeatureImageType::RegionType FeatureImageRegionType
void EnlargeOutputRequestedRegion(DataObject *) override
typename OutputImageType::SizeType SizeType
const FeatureImageType * GetFeatureImage()
LabelMapOverlayImageFilter()
typename LabelMapType::LabelObjectType LabelObjectType
typename OutputImageType::IndexType IndexType
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
TFeatureImage FeatureImageType
typename FeatureImageType::PixelType FeatureImagePixelType
~LabelMapOverlayImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateData() override
void SetInput2(const TFeatureImage *input)
Light weight base class for most itk classes.
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
Functor::Add2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....