ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkApproximateSignedDistanceMapImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 {
74 template< typename TInputImage, typename TOutputImage >
75 class ITK_TEMPLATE_EXPORT ApproximateSignedDistanceMapImageFilter:public ImageToImageFilter< TInputImage, TOutputImage >
76 {
77 public:
78  ITK_DISALLOW_COPY_AND_ASSIGN(ApproximateSignedDistanceMapImageFilter);
79 
85 
88 
90  itkNewMacro(Self);
91 
93  using InputImageType = TInputImage;
94 
96  using OutputImageType = TOutputImage;
97 
99  using InputPixelType = typename InputImageType::PixelType;
100 
102  using OutputPixelType = typename OutputImageType::PixelType;
103 
107 
109  static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;
110 
112  using InputImagePointer = typename InputImageType::ConstPointer;
113 
115  using OutputImagePointer = typename OutputImageType::Pointer;
116 
119  itkSetMacro(InsideValue, InputPixelType);
120  itkGetConstMacro(InsideValue, InputPixelType);
122 
124  itkSetMacro(OutsideValue, InputPixelType);
125  itkGetConstMacro(OutsideValue, InputPixelType);
127 
128 #ifdef ITK_USE_CONCEPT_CHECKING
129  // Begin concept checking
130  itkConceptMacro( InputEqualityComparableCheck,
132  // End concept checking
133 #endif
134 
135 protected:
137  ~ApproximateSignedDistanceMapImageFilter() override = default;
138  void GenerateData() override;
139 
140  void PrintSelf(std::ostream & os, Indent indent) const override;
141 
142 private:
146 
148 
151 };
152 } // end of namespace itk
153 
154 #ifndef ITK_MANUAL_INSTANTIATION
155 #include "itkApproximateSignedDistanceMapImageFilter.hxx"
156 #endif
157 
158 #endif
typename OutputImageType::Pointer OutputImagePointer
unsigned long SizeValueType
Definition: itkIntTypes.h:83
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...
Base class for all process objects that output image data.
This class compute the signed (positive and negative) chamfer distance in a narrow band...
Create a map of the approximate signed distance from the boundaries of a binary image.
typename InputImageType::Pointer InputImagePointer
TOutputImage OutputImageType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)