18 #ifndef itkLabelMapContourOverlayImageFilter_h
19 #define itkLabelMapContourOverlayImageFilter_h
57 template<
typename TLabelMap,
typename TFeatureImage,
typename TOutputImage=Image< RGBPixel<
typename TFeatureImage::PixelType >, TFeatureImage::ImageDimension > >
75 typedef typename LabelObjectType::LabelType
LabelType;
95 itkStaticConstMacro(LabelMapDimension,
unsigned int,
96 TLabelMap::ImageDimension);
97 itkStaticConstMacro(OutputImageDimension,
unsigned int,
98 TOutputImage::ImageDimension);
99 itkStaticConstMacro(ImageDimension,
unsigned int,
100 TOutputImage::ImageDimension);
112 HIGH_LABEL_ON_TOP = 0,
127 this->SetNthInput( 1, const_cast<TFeatureImage *>(input) );
139 this->SetInput( input );
145 this->SetFeatureImage( input );
151 itkSetMacro( Opacity,
double );
152 itkGetConstReferenceMacro( Opacity,
double );
157 itkSetMacro( Type,
int );
158 itkGetConstReferenceMacro( Type,
int );
163 itkSetMacro( Priority,
int );
164 itkGetConstReferenceMacro( Priority,
int );
169 itkSetMacro( DilationRadius,
SizeType );
170 itkGetConstReferenceMacro( DilationRadius,
SizeType );
175 itkSetMacro( ContourThickness,
SizeType );
176 itkGetConstReferenceMacro( ContourThickness,
SizeType );
181 itkSetMacro( SliceDimension,
int );
182 itkGetConstReferenceMacro( SliceDimension,
int );
190 if ( m_Functor != functor )
207 void GenerateInputRequestedRegion() ITK_OVERRIDE;
210 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output)) ITK_OVERRIDE;
212 virtual
void BeforeThreadedGenerateData() ITK_OVERRIDE;
214 virtual
void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
ThreadIdType threadId ) ITK_OVERRIDE;
216 virtual
void ThreadedProcessLabelObject( LabelObjectType * labelObject ) ITK_OVERRIDE;
218 virtual
void GenerateOutputInformation() ITK_OVERRIDE;
220 void PrintSelf(std::ostream& os,
Indent indent) const ITK_OVERRIDE;
245 #ifndef ITK_MANUAL_INSTANTIATION
246 #include "itkLabelMapContourOverlayImageFilter.hxx"
OutputImageType::PixelType OutputImagePixelType
void SetInput1(TLabelMap *input)
FunctorType & GetFunctor()
OutputImageType::RegionType RegionType
SizeType m_DilationRadius
LabelMapType::ConstPointer LabelMapConstPointer
LabelMapFilter< TLabelMap, TOutputImage > Superclass
void SetFeatureImage(TFeatureImage *input)
Apply a colormap to the contours (outlines) of each object in a label map and superimpose it on top o...
~LabelMapContourOverlayImageFilter() override
OutputImageType::ConstPointer OutputImageConstPointer
FeatureImageType::Pointer FeatureImagePointer
FeatureImageType::ConstPointer FeatureImageConstPointer
Barrier::Pointer m_Barrier
OutputImageType::IndexType IndexType
TFeatureImage FeatureImageType
Functor::LabelOverlayFunctor< FeatureImagePixelType, LabelMapPixelType, OutputImagePixelType > FunctorType
virtual void SetFunctor(const FunctorType &functor)
SmartPointer< const Self > ConstPointer
void SetInput2(TFeatureImage *input)
OutputImageType::RegionType OutputImageRegionType
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.
SmartPointer< Self > Pointer
LabelObjectType::LabelType LabelType
OutputImageType::Pointer OutputImagePointer
LabelMapType::Pointer LabelMapPointer
TOutputImage OutputImageType
LabelMapContourOverlayImageFilter Self
FeatureImageType::PixelType FeatureImagePixelType
LabelMapType::RegionType LabelMapRegionType
SizeType m_ContourThickness
OutputImageType::SizeType SizeType
Base class for filters that take an image as input and produce an image as output.
LabelMapPointer m_TempImage
Control indentation during Print() invocation.
FeatureImageType::RegionType FeatureImageRegionType
ImageBaseType::SizeType SizeType
LabelMapType::LabelObjectType LabelObjectType
FeatureImageType * GetFeatureImage()
Base class for all data objects in ITK.
LabelMapType::PixelType LabelMapPixelType
const FunctorType & GetFunctor() const
ImageBaseType::IndexType IndexType