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
virtual LabelMapType * GetLabelMap()
OutputImageType::RegionType RegionType
virtual void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
SizeType m_DilationRadius
virtual void BeforeThreadedGenerateData()
void GenerateInputRequestedRegion()
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
FeatureImageType::ConstPointer FeatureImageConstPointer
Barrier::Pointer m_Barrier
OutputImageType::IndexType IndexType
LabelMapContourOverlayImageFilter()
TFeatureImage FeatureImageType
Functor::LabelOverlayFunctor< FeatureImagePixelType, LabelMapPixelType, OutputImagePixelType > FunctorType
virtual void GenerateOutputInformation()
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)
OutputImageType::RegionType OutputImageRegionType
virtual void Modified() const
Base class for filters that take an image as input and overwrite that image as the output...
DataObject * GetInput(const DataObjectIdentifierType &key)
SmartPointer< Self > Pointer
LabelObjectType::LabelType LabelType
OutputImageType::Pointer OutputImagePointer
void PrintSelf(std::ostream &os, Indent indent) const
LabelMapType::Pointer LabelMapPointer
void EnlargeOutputRequestedRegion(DataObject *)
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
unsigned int ThreadIdType