18#ifndef itkMorphologicalWatershedFromMarkersImageFilter_h
19#define itkMorphologicalWatershedFromMarkersImageFilter_h
80template <
typename TInputImage,
typename TLabelImage>
108 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
121 this->SetNthInput(1,
const_cast<TLabelImage *
>(input));
125 const LabelImageType *
135 this->SetInput(input);
142 this->SetMarkerImage(input);
151 itkSetMacro(FullyConnected,
bool);
152 itkGetConstReferenceMacro(FullyConnected,
bool);
153 itkBooleanMacro(FullyConnected);
161 itkSetMacro(MarkWatershedLine,
bool);
162 itkGetConstReferenceMacro(MarkWatershedLine,
bool);
163 itkBooleanMacro(MarkWatershedLine);
189 bool m_FullyConnected{
false };
191 bool m_MarkWatershedLine{
true };
195#ifndef ITK_MANUAL_INSTANTIATION
196# include "itkMorphologicalWatershedFromMarkersImageFilter.hxx"
Base class for all data objects in ITK.
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Morphological watershed transform from markers.
void SetMarkerImage(const TLabelImage *input)
MorphologicalWatershedFromMarkersImageFilter()
void EnlargeOutputRequestedRegion(DataObject *) override
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
typename LabelImageType::IndexType IndexType
void SetInput1(const TInputImage *input)
typename LabelImageType::Pointer LabelImagePointer
typename InputImageType::ConstPointer InputImageConstPointer
const LabelImageType * GetMarkerImage() const
TInputImage InputImageType
void GenerateInputRequestedRegion() override
TLabelImage LabelImageType
~MorphologicalWatershedFromMarkersImageFilter() override=default
typename LabelImageType::ConstPointer LabelImageConstPointer
typename LabelImageType::PixelType LabelImagePixelType
void PrintSelf(std::ostream &os, Indent indent) const override
void SetInput2(const TLabelImage *input)
void GenerateData() override
typename LabelImageType::RegionType LabelImageRegionType
typename InputImageType::RegionType InputImageRegionType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....