18#ifndef itkLabelMapMaskImageFilter_h
19#define itkLabelMapMaskImageFilter_h
46template <
typename TInputImage,
typename TOutputImage>
66 using LabelType =
typename LabelObjectType::LabelType;
79 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
80 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
81 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
94 this->SetNthInput(1,
const_cast<TOutputImage *
>(input));
98 const OutputImageType *
108 this->SetInput(input);
115 this->SetFeatureImage(input);
136 itkSetMacro(Negated,
bool);
137 itkGetConstReferenceMacro(Negated,
bool);
138 itkBooleanMacro(Negated);
144 itkSetMacro(Crop,
bool);
145 itkGetConstReferenceMacro(Crop,
bool);
146 itkBooleanMacro(Crop);
184 Superclass::DynamicThreadedGenerateData(outputRegion);
196 bool m_Negated{
false };
197 bool m_Crop{
false };
205#ifndef ITK_MANUAL_INSTANTIATION
206# include "itkLabelMapMaskImageFilter.hxx"
Base class for all data objects in ITK.
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
TInputImage InputImageType
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::RegionType InputImageRegionType
Control indentation during Print() invocation.
Base class for filters that take an image as input and overwrite that image as the output.
typename InputImageType::LabelObjectType LabelObjectType
typename OutputImageType::ConstPointer OutputImageConstPointer
Mask and image with a LabelMap.
void EnlargeOutputRequestedRegion(DataObject *) override
void ThreadedProcessLabelObject(LabelObjectType *labelObject) override
~LabelMapMaskImageFilter() override=default
void SuperclassDynamicTGD(const OutputImageRegionType &outputRegion)
LabelMapMaskImageFilter()
const OutputImageType * GetFeatureImage()
void PrintSelf(std::ostream &os, Indent indent) const override
void SetInput1(const TInputImage *input)
void GenerateData() override
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void SetInput2(const TOutputImage *input)
typename OutputImageType::IndexType IndexType
typename LabelObjectType::LengthType LengthType
void GenerateOutputInformation() override
void GenerateInputRequestedRegion() override
typename OutputImageType::SizeType SizeType
void SetFeatureImage(const TOutputImage *input)
typename LabelObjectType::LabelType LabelType
typename OutputImageType::RegionType RegionType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
Generate a unique, increasing time value.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....