18 #ifndef itkLabelMapMaskImageFilter_h
19 #define itkLabelMapMaskImageFilter_h
46 template<
typename TInputImage,
typename TOutputImage>
65 typedef typename LabelObjectType::LabelType
LabelType;
72 typedef typename OutputImageType::IndexType
IndexType;
73 typedef typename OutputImageType::SizeType
SizeType;
78 itkStaticConstMacro(InputImageDimension,
unsigned int,
79 TInputImage::ImageDimension);
80 itkStaticConstMacro(OutputImageDimension,
unsigned int,
81 TOutputImage::ImageDimension);
82 itkStaticConstMacro(ImageDimension,
unsigned int,
83 TOutputImage::ImageDimension);
96 this->SetNthInput( 1, const_cast<TOutputImage *>(input) );
108 this->SetInput( input );
114 this->SetFeatureImage( input );
121 itkSetMacro(BackgroundValue, OutputImagePixelType);
122 itkGetConstMacro(BackgroundValue, OutputImagePixelType);
128 itkSetMacro(Label, InputImagePixelType);
129 itkGetConstMacro(Label, InputImagePixelType);
135 itkSetMacro(Negated,
bool);
136 itkGetConstReferenceMacro(Negated,
bool);
137 itkBooleanMacro(Negated);
143 itkSetMacro(Crop,
bool);
144 itkGetConstReferenceMacro(Crop,
bool);
145 itkBooleanMacro(Crop);
152 itkSetMacro(CropBorder, SizeType);
153 itkGetConstReferenceMacro(CropBorder, SizeType);
163 void GenerateInputRequestedRegion() ITK_OVERRIDE;
166 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output)) ITK_OVERRIDE;
168 virtual
void GenerateOutputInformation() ITK_OVERRIDE;
170 virtual
void BeforeThreadedGenerateData() ITK_OVERRIDE;
172 virtual
void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
ThreadIdType threadId ) ITK_OVERRIDE;
174 virtual
void ThreadedProcessLabelObject( LabelObjectType * labelObject ) ITK_OVERRIDE;
195 #ifndef ITK_MANUAL_INSTANTIATION
196 #include "itkLabelMapMaskImageFilter.hxx"
virtual void PrintSelf(std::ostream &os, Indent indent) const override
OutputImageType::IndexType IndexType
TInputImage InputImageType
void SetInput1(const TInputImage *input)
void SetInput2(const TOutputImage *input)
TOutputImage OutputImageType
~LabelMapMaskImageFilter()
LabelObjectType::LengthType LengthType
Base class for all process objects that output image data.
void SetFeatureImage(const TOutputImage *input)
OutputImageType::ConstPointer OutputImageConstPointer
SmartPointer< Self > Pointer
InputImageType::RegionType InputImageRegionType
InputImageType::Pointer InputImagePointer
LabelObjectType::LabelType LabelType
InputImageType::ConstPointer InputImageConstPointer
SmartPointer< const Self > ConstPointer
LabelMapFilter< TInputImage, TOutputImage > Superclass
OutputImageType::RegionType RegionType
SmartPointer< const Self > ConstPointer
Generate a unique, increasing time value.
OutputImageType::PixelType OutputImagePixelType
OutputImageType::PixelType OutputImagePixelType
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.
Base class for all data objects in ITK.
InputImageType::PixelType InputImagePixelType
LabelMapMaskImageFilter Self
Control indentation during Print() invocation.
InputImageType::LabelObjectType LabelObjectType
const OutputImageType * GetFeatureImage()
OutputImageType::SizeType SizeType
TOutputImage OutputImageType
InputImageType::PixelType InputImagePixelType
Mask and image with a LabelMap.
SmartPointer< Self > Pointer
OutputImageType::Pointer OutputImagePointer
OutputImageType::RegionType OutputImageRegionType
Standard barrier class implementation for synchronizing the execution of threads. ...