18 #ifndef __itkLabelMapOverlayImageFilter_h
19 #define __itkLabelMapOverlayImageFilter_h
51 template<
class TLabelMap,
class TFeatureImage,
class TOutputImage=Image< RGBPixel<
typename TFeatureImage::PixelType >, TFeatureImage::ImageDimension > >
69 typedef typename LabelObjectType::LabelType
LabelType;
83 typedef typename OutputImageType::IndexType
IndexType;
84 typedef typename OutputImageType::SizeType
SizeType;
90 itkStaticConstMacro(InputImageDimension,
unsigned int,
91 TLabelMap::ImageDimension);
92 itkStaticConstMacro(OutputImageDimension,
unsigned int,
93 TOutputImage::ImageDimension);
94 itkStaticConstMacro(ImageDimension,
unsigned int,
95 TOutputImage::ImageDimension);
106 void SetFeatureImage(
const TFeatureImage *input)
109 this->SetNthInput( 1, const_cast<TFeatureImage *>(input) );
119 void SetInput1(
const TLabelMap *input)
121 this->SetInput( input );
125 void SetInput2(
const TFeatureImage *input)
127 this->SetFeatureImage( input );
133 itkSetMacro( Opacity,
double );
134 itkGetConstReferenceMacro( Opacity,
double );
144 void GenerateInputRequestedRegion();
147 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output));
149 virtual void BeforeThreadedGenerateData();
151 virtual void ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread,
ThreadIdType threadId );
153 virtual void ThreadedProcessLabelObject( LabelObjectType * labelObject );
155 virtual void GenerateOutputInformation();
157 void PrintSelf(std::ostream& os,
Indent indent)
const;
162 void operator=(
const Self&);
171 #ifndef ITK_MANUAL_INSTANTIATION
172 #include "itkLabelMapOverlayImageFilter.hxx"