ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkMorphologicalWatershedImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkMorphologicalWatershedImageFilter_h
19#define itkMorphologicalWatershedImageFilter_h
20
22
23namespace itk
24{
52template <typename TInputImage, typename TOutputImage>
53class ITK_TEMPLATE_EXPORT MorphologicalWatershedImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
54{
55public:
56 ITK_DISALLOW_COPY_AND_MOVE(MorphologicalWatershedImageFilter);
57
63
65 using InputImageType = TInputImage;
66 using OutputImageType = TOutputImage;
67 using InputImagePointer = typename InputImageType::Pointer;
68 using InputImageConstPointer = typename InputImageType::ConstPointer;
69 using InputImageRegionType = typename InputImageType::RegionType;
70 using InputImagePixelType = typename InputImageType::PixelType;
71 using OutputImagePointer = typename OutputImageType::Pointer;
72 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
73 using OutputImageRegionType = typename OutputImageType::RegionType;
74 using OutputImagePixelType = typename OutputImageType::PixelType;
75
77 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
78 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
79
81 itkNewMacro(Self);
82
84 itkOverrideGetNameOfClassMacro(MorphologicalWatershedImageFilter);
85
92 itkSetMacro(FullyConnected, bool);
93 itkGetConstReferenceMacro(FullyConnected, bool);
94 itkBooleanMacro(FullyConnected);
96
102 itkSetMacro(MarkWatershedLine, bool);
103 itkGetConstReferenceMacro(MarkWatershedLine, bool);
104 itkBooleanMacro(MarkWatershedLine);
106
109 itkSetMacro(Level, InputImagePixelType);
110 itkGetConstMacro(Level, InputImagePixelType);
112
113protected:
116 void
117 PrintSelf(std::ostream & os, Indent indent) const override;
118
122 void
124
126 void
127 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
128
131 void
132 GenerateData() override;
133
134private:
135 bool m_FullyConnected{ false };
136
138
140}; // end of class
141} // end namespace itk
142
143#ifndef ITK_MANUAL_INSTANTIATION
144# include "itkMorphologicalWatershedImageFilter.hxx"
145#endif
146
147#endif
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Definition itkIndent.h:50
ImageToImageFilter< TInputImage, TOutputImage > Superclass
~MorphologicalWatershedImageFilter() override=default
typename OutputImageType::RegionType OutputImageRegionType
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputImageType::ConstPointer OutputImageConstPointer
void EnlargeOutputRequestedRegion(DataObject *output) override
typename InputImageType::ConstPointer InputImageConstPointer
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....