ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkDanielssonDistanceMapImageFilter.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 itkDanielssonDistanceMapImageFilter_h
19#define itkDanielssonDistanceMapImageFilter_h
20
23
24namespace itk
25{
55template <typename TInputImage, typename TOutputImage, typename TVoronoiImage = TInputImage>
56class ITK_TEMPLATE_EXPORT DanielssonDistanceMapImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
57{
58public:
59 ITK_DISALLOW_COPY_AND_MOVE(DanielssonDistanceMapImageFilter);
60
66
68
70 itkNewMacro(Self);
71
73 itkOverrideGetNameOfClassMacro(DanielssonDistanceMapImageFilter);
74
76 using InputImageType = TInputImage;
77
79 using InputPixelType = typename InputImageType::PixelType;
80
82 using RegionType = typename InputImageType::RegionType;
83
85 using IndexType = typename RegionType::IndexType;
86
88 using OffsetType = typename InputImageType::OffsetType;
89
91 using SpacingType = typename InputImageType::SpacingType;
92 using SpacingValueType = typename InputImageType::SpacingValueType;
93
95 using SizeType = typename RegionType::SizeType;
96
98 using SizeValueType = typename SizeType::SizeValueType;
99
102 using OutputImageType = TOutputImage;
103
105 using OutputPixelType = typename OutputImageType::PixelType;
106
107 using VoronoiImageType = TVoronoiImage;
108 using VoronoiImagePointer = typename VoronoiImageType::Pointer;
109 using VoronoiPixelType = typename VoronoiImageType::PixelType;
110
112 static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;
113
116
118 using InputImagePointer = typename InputImageType::ConstPointer;
119
121 using OutputImagePointer = typename OutputImageType::Pointer;
122
125
127 itkSetMacro(SquaredDistance, bool);
128 itkGetConstReferenceMacro(SquaredDistance, bool);
129 itkBooleanMacro(SquaredDistance);
131
137 itkSetMacro(InputIsBinary, bool);
138 itkGetConstReferenceMacro(InputIsBinary, bool);
139 itkBooleanMacro(InputIsBinary);
141
143 itkSetMacro(UseImageSpacing, bool);
144 itkGetConstReferenceMacro(UseImageSpacing, bool);
145 itkBooleanMacro(UseImageSpacing);
147
155
166
170
176
177 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
178 static constexpr unsigned int VoronoiImageDimension = TVoronoiImage::ImageDimension;
179
182 itkConceptMacro(DoubleConvertibleToOutputCheck, (Concept::Convertible<double, OutputPixelType>));
184
185protected:
188 void
189 PrintSelf(std::ostream & os, Indent indent) const override;
190
192 void
193 GenerateData() override;
194
196 void
198
200 void
202
204 void
206
207private:
210 bool m_UseImageSpacing{ true };
211
213};
214} // end namespace itk
215
216#ifndef ITK_MANUAL_INSTANTIATION
217# include "itkDanielssonDistanceMapImageFilter.hxx"
218#endif
219
220#endif
ImageToImageFilter< TInputImage, TOutputImage > Superclass
VectorImageType * GetVectorDistanceMap()
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
~DanielssonDistanceMapImageFilter() override=default
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
typename InputImageType::ConstPointer InputImagePointer
void PrintSelf(std::ostream &os, Indent indent) const override
Image< OffsetType, Self::InputImageDimension > VectorImageType
typename InputImageType::SpacingValueType SpacingValueType
void UpdateLocalDistance(VectorImageType *, const IndexType &, const OffsetType &)
typename VoronoiImageType::PixelType VoronoiPixelType
SmartPointer< Self > Pointer
ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:50
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....