17 #ifndef __itkLabelMapMaskImageFilter_h
18 #define __itkLabelMapMaskImageFilter_h
40 template<
class TInputImage,
class TOutputImage>
60 typedef typename LabelObjectType::LabelType
LabelType;
66 typedef typename OutputImageType::IndexType
IndexType;
67 typedef typename OutputImageType::SizeType
SizeType;
71 itkStaticConstMacro(InputImageDimension,
unsigned int,
72 TInputImage::ImageDimension);
73 itkStaticConstMacro(OutputImageDimension,
unsigned int,
74 TOutputImage::ImageDimension);
75 itkStaticConstMacro(ImageDimension,
unsigned int,
76 TOutputImage::ImageDimension);
86 void SetFeatureImage(
const TOutputImage *input)
89 this->SetNthInput( 1, const_cast<TOutputImage *>(input) );
99 void SetInput1(TInputImage *input)
101 this->SetInput( input );
105 void SetInput2(TOutputImage *input)
107 this->SetFeatureImage( input );
114 itkSetMacro(BackgroundValue, OutputImagePixelType);
115 itkGetConstMacro(BackgroundValue, OutputImagePixelType);
120 itkSetMacro(Label, InputImagePixelType);
121 itkGetConstMacro(Label, InputImagePixelType);
126 itkSetMacro(Negated,
bool);
127 itkGetConstReferenceMacro(Negated,
bool);
128 itkBooleanMacro(Negated);
133 itkSetMacro(Crop,
bool);
134 itkGetConstReferenceMacro(Crop,
bool);
135 itkBooleanMacro(Crop);
141 itkSetMacro(CropBorder, SizeType);
142 itkGetConstReferenceMacro(CropBorder, SizeType);
151 void GenerateInputRequestedRegion() ;
154 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output));
156 virtual void GenerateOutputInformation();
158 virtual void BeforeThreadedGenerateData();
160 virtual void ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread,
int threadId );
162 virtual void ThreadedGenerateData( LabelObjectType * labelObject );
164 void PrintSelf(std::ostream& os,
Indent indent)
const;
168 void operator=(
const Self&);
184 #ifndef ITK_MANUAL_INSTANTIATION