ITK  6.0.0
Insight Toolkit
itkApproximateSignedDistanceMapImageFilter.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 itkApproximateSignedDistanceMapImageFilter_h
19#define itkApproximateSignedDistanceMapImageFilter_h
20
23
24namespace itk
25{
75template <typename TInputImage, typename TOutputImage>
76class ITK_TEMPLATE_EXPORT ApproximateSignedDistanceMapImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
77{
78public:
79 ITK_DISALLOW_COPY_AND_MOVE(ApproximateSignedDistanceMapImageFilter);
80
86
88 itkOverrideGetNameOfClassMacro(ApproximateSignedDistanceMapImageFilter);
89
91 itkNewMacro(Self);
92
94 using InputImageType = TInputImage;
95
97 using OutputImageType = TOutputImage;
98
100 using InputPixelType = typename InputImageType::PixelType;
101
103 using OutputPixelType = typename OutputImageType::PixelType;
104
108
110 static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;
111
114
117
120 itkSetMacro(InsideValue, InputPixelType);
121 itkGetConstMacro(InsideValue, InputPixelType);
125 itkSetMacro(OutsideValue, InputPixelType);
126 itkGetConstMacro(OutsideValue, InputPixelType);
129#ifdef ITK_USE_CONCEPT_CHECKING
130 // Begin concept checking
132 // End concept checking
133#endif
134
135protected:
138 void
139 GenerateData() override;
140
141 void
142 PrintSelf(std::ostream & os, Indent indent) const override;
143
144private:
147 typename IsoContourType::Pointer m_IsoContourFilter{};
148
149 typename ChamferType::Pointer m_ChamferFilter{};
150
151 InputPixelType m_InsideValue{};
152 InputPixelType m_OutsideValue{};
153};
154} // end of namespace itk
155
156#ifndef ITK_MANUAL_INSTANTIATION
157# include "itkApproximateSignedDistanceMapImageFilter.hxx"
158#endif
159
160#endif
Create a map of the approximate signed distance from the boundaries of a binary image.
void PrintSelf(std::ostream &os, Indent indent) const override
~ApproximateSignedDistanceMapImageFilter() override=default
This class compute the signed (positive and negative) chamfer distance in a narrow band.
Base class for all process objects that output image data.
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Compute an approximate distance from an interpolated isocontour to the close grid points.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Definition: itkIntTypes.h:86