ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkVoronoiSegmentationImageFilter.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 itkVoronoiSegmentationImageFilter_h
19#define itkVoronoiSegmentationImageFilter_h
20
22
23namespace itk
24{
49template <typename TInputImage, typename TOutputImage, typename TBinaryPriorImage = Image<unsigned char, 2>>
50class ITK_TEMPLATE_EXPORT VoronoiSegmentationImageFilter
51 : public VoronoiSegmentationImageFilterBase<TInputImage, TOutputImage, TBinaryPriorImage>
52{
53public:
54 ITK_DISALLOW_COPY_AND_MOVE(VoronoiSegmentationImageFilter);
55
61
63 itkNewMacro(Self);
64
66 itkOverrideGetNameOfClassMacro(VoronoiSegmentationImageFilter);
67
69 using typename Superclass::BinaryObjectImage;
70 using typename Superclass::IndexList;
71 using typename Superclass::IndexType;
72 using typename Superclass::RegionType;
73 using typename Superclass::InputImageType;
74
76 itkSetMacro(Mean, double);
77 itkGetConstMacro(Mean, double);
79
82 itkSetMacro(STD, double);
83 itkGetConstMacro(STD, double);
85
87 itkSetMacro(MeanTolerance, double);
88 itkGetConstMacro(MeanTolerance, double);
90
92 itkSetMacro(STDTolerance, double);
93
95 itkGetConstMacro(STDTolerance, double);
96
98 void
100
101 itkGetConstMacro(MeanPercentError, double);
102
104 itkGetConstMacro(STDPercentError, double);
105 void
108
111 void
112 TakeAPrior(const BinaryObjectImage * aprior) override;
113
115 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
116 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
117
120
121protected:
124 void
125 PrintSelf(std::ostream & os, Indent indent) const override;
126
127private:
128 double m_Mean{ 0.0 };
129 double m_STD{ 0.0 };
130 double m_MeanTolerance{ 0.0 };
131 double m_STDTolerance{ 0.0 };
132 double m_MeanPercentError{ 0.10 };
133 double m_STDPercentError{ 1.5 };
134
135 bool
136 TestHomogeneity(IndexList & Plist) override;
137};
138} // namespace itk
139
140#ifndef ITK_MANUAL_INSTANTIATION
141# include "itkVoronoiSegmentationImageFilter.hxx"
142#endif
143
144#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
bool TestHomogeneity(IndexList &Plist) override
void TakeAPrior(const BinaryObjectImage *aprior) override
~VoronoiSegmentationImageFilter() override=default
VoronoiSegmentationImageFilterBase< TInputImage, TOutputImage, TBinaryPriorImage > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....