ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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{
74
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
106 using OutputSizeType = typename OutputImageType::SizeType;
107 using OutputSizeValueType = typename OutputSizeType::SizeValueType;
108
110 static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;
111
113 using InputImagePointer = typename InputImageType::ConstPointer;
114
116 using OutputImagePointer = typename OutputImageType::Pointer;
117
120 itkSetMacro(InsideValue, InputPixelType);
121 itkGetConstMacro(InsideValue, InputPixelType);
123
125 itkSetMacro(OutsideValue, InputPixelType);
126 itkGetConstMacro(OutsideValue, InputPixelType);
128
130
131protected:
134 void
135 GenerateData() override;
136
137 void
138 PrintSelf(std::ostream & os, Indent indent) const override;
139
140private:
144
146
149};
150} // end of namespace itk
151
152#ifndef ITK_MANUAL_INSTANTIATION
153# include "itkApproximateSignedDistanceMapImageFilter.hxx"
154#endif
155
156#endif
IsoContourDistanceImageFilter< InputImageType, OutputImageType > IsoContourType
FastChamferDistanceImageFilter< OutputImageType, OutputImageType > ChamferType
void PrintSelf(std::ostream &os, Indent indent) const override
~ApproximateSignedDistanceMapImageFilter() override=default
ImageToImageFilter< TInputImage, TOutputImage > Superclass
This class compute the signed (positive and negative) chamfer distance in a narrow band.
Control indentation during Print() invocation.
Definition itkIndent.h:50
Compute an approximate distance from an interpolated isocontour to the close grid points.
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....