18 #ifndef itkMorphologicalWatershedFromMarkersImageFilter_h
19 #define itkMorphologicalWatershedFromMarkersImageFilter_h
80 template<
typename TInputImage,
typename TLabelImage >
106 itkStaticConstMacro(ImageDimension,
unsigned int,
107 TInputImage::ImageDimension);
119 this->SetNthInput( 1, const_cast< TLabelImage * >( input ) );
125 return itkDynamicCastInDebugMode< LabelImageType * >
132 this->SetInput(input);
138 this->SetMarkerImage(input);
147 itkSetMacro(FullyConnected,
bool);
148 itkGetConstReferenceMacro(FullyConnected,
bool);
149 itkBooleanMacro(FullyConnected);
157 itkSetMacro(MarkWatershedLine,
bool);
158 itkGetConstReferenceMacro(MarkWatershedLine,
bool);
159 itkBooleanMacro(MarkWatershedLine);
165 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
170 void GenerateInputRequestedRegion() ITK_OVERRIDE;
175 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) ) ITK_OVERRIDE;
178 void GenerateData() ITK_OVERRIDE;
183 bool m_FullyConnected;
185 bool m_MarkWatershedLine;
189 #ifndef ITK_MANUAL_INSTANTIATION
190 #include "itkMorphologicalWatershedFromMarkersImageFilter.hxx"
InputImageType::ConstPointer InputImageConstPointer
Light weight base class for most itk classes.
InputImageType::Pointer InputImagePointer
LabelImageType::ConstPointer LabelImageConstPointer
LabelImageType::RegionType LabelImageRegionType
void SetInput1(const TInputImage *input)
SmartPointer< const Self > ConstPointer
LabelImageType::IndexType IndexType
LabelImageType::Pointer LabelImagePointer
InputImageType::PixelType InputImagePixelType
Morphological watershed transform from markers.
void SetInput2(const TLabelImage *input)
ImageToImageFilter< TInputImage, TLabelImage > Superclass
SmartPointer< Self > Pointer
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
Base class for filters that take an image as input and produce an image as output.
LabelImageType::PixelType LabelImagePixelType
void SetMarkerImage(const TLabelImage *input)
MorphologicalWatershedFromMarkersImageFilter Self
Control indentation during Print() invocation.
~MorphologicalWatershedFromMarkersImageFilter() override
const LabelImageType * GetMarkerImage() const
TLabelImage LabelImageType
Base class for all data objects in ITK.
InputImageType::RegionType InputImageRegionType
TInputImage InputImageType
ImageBaseType::IndexType IndexType