18 #ifndef __itkLabelMapContourOverlayImageFilter_h
19 #define __itkLabelMapContourOverlayImageFilter_h
56 template<
class TLabelMap,
class TFeatureImage,
class 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;
94 itkStaticConstMacro(LabelMapDimension,
unsigned int,
95 TLabelMap::ImageDimension);
96 itkStaticConstMacro(OutputImageDimension,
unsigned int,
97 TOutputImage::ImageDimension);
98 itkStaticConstMacro(ImageDimension,
unsigned int,
99 TOutputImage::ImageDimension);
111 HIGH_LABEL_ON_TOP = 0,
123 void SetFeatureImage(TFeatureImage *input)
126 this->SetNthInput( 1, const_cast<TFeatureImage *>(input) );
136 void SetInput1(TLabelMap *input)
138 this->SetInput( input );
142 void SetInput2(TFeatureImage *input)
144 this->SetFeatureImage( 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 );
191 void GenerateInputRequestedRegion();
194 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output));
196 virtual void BeforeThreadedGenerateData();
198 virtual void ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread,
ThreadIdType threadId );
200 virtual void ThreadedProcessLabelObject( LabelObjectType * labelObject );
202 void PrintSelf(std::ostream& os,
Indent indent)
const;
211 void operator=(
const Self&);
227 #ifndef ITK_MANUAL_INSTANTIATION
228 #include "itkLabelMapContourOverlayImageFilter.hxx"