ITK  5.2.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  * http://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 
24 namespace itk
25 {
75 template <typename TInputImage, typename TOutputImage>
76 class ITK_TEMPLATE_EXPORT ApproximateSignedDistanceMapImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
77 {
78 public:
79  ITK_DISALLOW_COPY_AND_MOVE(ApproximateSignedDistanceMapImageFilter);
80 
86 
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 
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 
129 #ifdef ITK_USE_CONCEPT_CHECKING
130  // Begin concept checking
132  // End concept checking
133 #endif
134 
135 protected:
137  ~ApproximateSignedDistanceMapImageFilter() override = default;
138  void
139  GenerateData() override;
140 
141  void
142  PrintSelf(std::ostream & os, Indent indent) const override;
143 
144 private:
148 
150 
153 };
154 } // end of namespace itk
155 
156 #ifndef ITK_MANUAL_INSTANTIATION
157 # include "itkApproximateSignedDistanceMapImageFilter.hxx"
158 #endif
159 
160 #endif
itk::ImageSource::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkImageSource.h:91
itk::ApproximateSignedDistanceMapImageFilter::m_IsoContourFilter
IsoContourType::Pointer m_IsoContourFilter
Definition: itkApproximateSignedDistanceMapImageFilter.h:147
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::ApproximateSignedDistanceMapImageFilter::m_InsideValue
InputPixelType m_InsideValue
Definition: itkApproximateSignedDistanceMapImageFilter.h:151
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::IsoContourDistanceImageFilter
Compute an approximate distance from an interpolated isocontour to the close grid points.
Definition: itkIsoContourDistanceImageFilter.h:59
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::ApproximateSignedDistanceMapImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition: itkApproximateSignedDistanceMapImageFilter.h:103
itk::ImageToImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkImageToImageFilter.h:130
itk::ApproximateSignedDistanceMapImageFilter::OutputSizeValueType
typename OutputSizeType::SizeValueType OutputSizeValueType
Definition: itkApproximateSignedDistanceMapImageFilter.h:107
itk::ApproximateSignedDistanceMapImageFilter::OutputSizeType
typename OutputImageType::SizeType OutputSizeType
Definition: itkApproximateSignedDistanceMapImageFilter.h:106
itkIsoContourDistanceImageFilter.h
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::ApproximateSignedDistanceMapImageFilter::m_ChamferFilter
ChamferType::Pointer m_ChamferFilter
Definition: itkApproximateSignedDistanceMapImageFilter.h:149
itkFastChamferDistanceImageFilter.h
itk::ApproximateSignedDistanceMapImageFilter::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition: itkApproximateSignedDistanceMapImageFilter.h:100
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::ApproximateSignedDistanceMapImageFilter::m_OutsideValue
InputPixelType m_OutsideValue
Definition: itkApproximateSignedDistanceMapImageFilter.h:152
itk::FastChamferDistanceImageFilter
This class compute the signed (positive and negative) chamfer distance in a narrow band.
Definition: itkFastChamferDistanceImageFilter.h:56
itk::ApproximateSignedDistanceMapImageFilter
Create a map of the approximate signed distance from the boundaries of a binary image.
Definition: itkApproximateSignedDistanceMapImageFilter.h:76
itk::Concept::EqualityComparable
Definition: itkConceptChecking.h:306
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90