18 #ifndef itkLabelMapOverlayImageFilter_h
19 #define itkLabelMapOverlayImageFilter_h
52 template<
typename TLabelMap,
typename TFeatureImage,
typename TOutputImage=Image< RGBPixel<
typename TFeatureImage::PixelType >, TFeatureImage::ImageDimension > >
70 typedef typename LabelObjectType::LabelType
LabelType;
84 typedef typename OutputImageType::IndexType
IndexType;
85 typedef typename OutputImageType::SizeType
SizeType;
91 itkStaticConstMacro(InputImageDimension,
unsigned int,
92 TLabelMap::ImageDimension);
93 itkStaticConstMacro(OutputImageDimension,
unsigned int,
94 TOutputImage::ImageDimension);
95 itkStaticConstMacro(ImageDimension,
unsigned int,
96 TOutputImage::ImageDimension);
110 this->SetNthInput( 1, const_cast<TFeatureImage *>(input) );
122 this->SetInput( input );
128 this->SetFeatureImage( input );
134 itkSetMacro( Opacity,
double );
135 itkGetConstReferenceMacro( Opacity,
double );
143 if ( m_Functor != functor )
160 void GenerateInputRequestedRegion() ITK_OVERRIDE;
163 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output)) ITK_OVERRIDE;
165 virtual
void BeforeThreadedGenerateData() ITK_OVERRIDE;
167 virtual
void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
ThreadIdType threadId ) ITK_OVERRIDE;
169 virtual
void ThreadedProcessLabelObject( LabelObjectType * labelObject ) ITK_OVERRIDE;
171 virtual
void GenerateOutputInformation() ITK_OVERRIDE;
173 void PrintSelf(std::ostream& os,
Indent indent) const ITK_OVERRIDE;
186 #ifndef ITK_MANUAL_INSTANTIATION
187 #include "itkLabelMapOverlayImageFilter.hxx"
void SetFeatureImage(const TFeatureImage *input)
void SetInput1(const TLabelMap *input)
TOutputImage OutputImageType
LabelMapType::PixelType LabelMapPixelType
LabelMapType::RegionType LabelMapRegionType
LabelObjectType::LabelType LabelType
SmartPointer< const Self > ConstPointer
LabelMapFilter< TLabelMap, TOutputImage > Superclass
SmartPointer< Self > Pointer
virtual void SetFunctor(const FunctorType &functor)
~LabelMapOverlayImageFilter()
LabelMapOverlayImageFilter Self
TFeatureImage FeatureImageType
const FeatureImageType * GetFeatureImage()
OutputImageType::RegionType RegionType
Base class for all process objects that output image data.
const FunctorType & GetFunctor() const
LabelMapType::ConstPointer LabelMapConstPointer
OutputImageType::ConstPointer OutputImageConstPointer
FeatureImageType::PixelType FeatureImagePixelType
FeatureImageType::RegionType FeatureImageRegionType
OutputImageType::PixelType OutputImagePixelType
FunctorType & GetFunctor()
LabelMapType::LabelObjectType LabelObjectType
OutputImageType::Pointer OutputImagePointer
LabelMapType::Pointer LabelMapPointer
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...
unsigned int ThreadIdType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
void SetInput2(const TFeatureImage *input)
FeatureImageType::Pointer FeatureImagePointer
FeatureImageType::ConstPointer FeatureImageConstPointer
OutputImageType::IndexType IndexType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Base class for all data objects in ITK.
OutputImageType::RegionType OutputImageRegionType
OutputImageType::SizeType SizeType
Functor::LabelOverlayFunctor< FeatureImagePixelType, LabelMapPixelType, OutputImagePixelType > FunctorType
Standard barrier class implementation for synchronizing the execution of threads. ...