18 #ifndef itkLabelMapContourOverlayImageFilter_h
19 #define itkLabelMapContourOverlayImageFilter_h
56 template<
typename TLabelMap,
typename TFeatureImage,
typename TOutputImage=Image< RGBPixel<
typename TFeatureImage::PixelType >, TFeatureImage::ImageDimension > >
74 typedef typename LabelObjectType::LabelType
LabelType;
87 typedef typename OutputImageType::IndexType
IndexType;
88 typedef typename OutputImageType::SizeType
SizeType;
95 TLabelMap::ImageDimension);
97 TOutputImage::ImageDimension);
99 TOutputImage::ImageDimension);
126 this->
SetNthInput( 1, const_cast<TFeatureImage *>(input) );
150 itkSetMacro( Opacity,
double );
151 itkGetConstReferenceMacro( Opacity,
double );
156 itkSetMacro( Type,
int );
157 itkGetConstReferenceMacro( Type,
int );
162 itkSetMacro( Priority,
int );
163 itkGetConstReferenceMacro( Priority,
int );
168 itkSetMacro( DilationRadius,
SizeType );
169 itkGetConstReferenceMacro( DilationRadius,
SizeType );
174 itkSetMacro( ContourThickness,
SizeType );
175 itkGetConstReferenceMacro( ContourThickness,
SizeType );
180 itkSetMacro( SliceDimension,
int );
181 itkGetConstReferenceMacro( SliceDimension,
int );
245 #ifndef ITK_MANUAL_INSTANTIATION
246 #include "itkLabelMapContourOverlayImageFilter.hxx"
OutputImageType::PixelType OutputImagePixelType
void SetInput1(TLabelMap *input)
FunctorType & GetFunctor()
static const unsigned int OutputImageDimension
OutputImageType::RegionType RegionType
SizeType m_DilationRadius
void GenerateInputRequestedRegion() override
virtual void BeforeThreadedGenerateData() override
LabelMapType::ConstPointer LabelMapConstPointer
void operator=(const Self &)
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...
OutputImageType::ConstPointer OutputImageConstPointer
FeatureImageType::Pointer FeatureImagePointer
static const unsigned int LabelMapDimension
void EnlargeOutputRequestedRegion(DataObject *) override
FeatureImageType::ConstPointer FeatureImageConstPointer
Barrier::Pointer m_Barrier
virtual void GenerateOutputInformation() override
OutputImageType::IndexType IndexType
void PrintSelf(std::ostream &os, Indent indent) const override
LabelMapContourOverlayImageFilter()
TFeatureImage FeatureImageType
Functor::LabelOverlayFunctor< FeatureImagePixelType, LabelMapPixelType, OutputImagePixelType > FunctorType
virtual LabelMapType * GetLabelMap() override
virtual void SetInput(const InputImageType *image)
virtual void SetFunctor(const FunctorType &functor)
SmartPointer< const Self > ConstPointer
void SetInput2(TFeatureImage *input)
virtual void ThreadedProcessLabelObject(LabelObjectType *labelObject) override
OutputImageType::RegionType OutputImageRegionType
virtual void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
virtual void Modified() const
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
~LabelMapContourOverlayImageFilter()
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
static const unsigned int ImageDimension
virtual void SetNthInput(DataObjectPointerArraySizeType num, DataObject *input)
LabelMapType::LabelObjectType LabelObjectType
FeatureImageType * GetFeatureImage()
Base class for all data objects in ITK.
LabelMapType::PixelType LabelMapPixelType
const FunctorType & GetFunctor() const