ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkZeroCrossingBasedEdgeDetectionImageFilter.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 itkZeroCrossingBasedEdgeDetectionImageFilter_h
19#define itkZeroCrossingBasedEdgeDetectionImageFilter_h
20
22#include "itkImage.h"
23
24namespace itk
25{
74template <typename TInputImage, typename TOutputImage>
76 : public ImageToImageFilter<TInputImage, TOutputImage>
77{
78public:
79 ITK_DISALLOW_COPY_AND_MOVE(ZeroCrossingBasedEdgeDetectionImageFilter);
80
84
86 using InputImageType = TInputImage;
87 using OutputImageType = TOutputImage;
88
92
94 using InputImagePixelType = typename TInputImage::PixelType;
95 using OutputImagePixelType = typename TOutputImage::PixelType;
96
98 itkNewMacro(Self);
99
101 using OutputImageRegionType = typename TOutputImage::RegionType;
102
104 itkOverrideGetNameOfClassMacro(ZeroCrossingBasedEdgeDetectionImageFilter);
105
107 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
108 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
109
112
114 itkSetMacro(Variance, ArrayType);
115 itkGetConstMacro(Variance, const ArrayType);
116 itkSetMacro(MaximumError, ArrayType);
117 itkGetConstMacro(MaximumError, const ArrayType);
119
121 itkGetConstMacro(BackgroundValue, OutputImagePixelType);
122 itkSetMacro(BackgroundValue, OutputImagePixelType);
123 itkGetConstMacro(ForegroundValue, OutputImagePixelType);
124 itkSetMacro(ForegroundValue, OutputImagePixelType);
126
128 void
130 {
131 m_Variance.Fill(v);
132 }
133
140 void
142 {
143 m_MaximumError.Fill(v);
144 }
145
150 itkConceptMacro(PixelTypeIsFloatingPointCheck, (Concept::IsFloatingPoint<InputImagePixelType>));
151
152protected:
154
156 void
157 PrintSelf(std::ostream & os, Indent indent) const override;
158
165 void
166 GenerateData() override;
167
168private:
171
175
178};
179} // end of namespace itk
180
181#ifndef ITK_MANUAL_INSTANTIATION
182# include "itkZeroCrossingBasedEdgeDetectionImageFilter.hxx"
183#endif
184
185#endif
Simulate a standard C array with copy semantics.
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
~ZeroCrossingBasedEdgeDetectionImageFilter() override=default
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....