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
22
23namespace itk
24{
54template <typename TInputImage, typename TOutputImage, typename TVoronoiImage = TInputImage>
55class ITK_TEMPLATE_EXPORT DanielssonDistanceMapImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
56{
57public:
58 ITK_DISALLOW_COPY_AND_MOVE(DanielssonDistanceMapImageFilter);
59
65
67
69 itkNewMacro(Self);
70
72 itkOverrideGetNameOfClassMacro(DanielssonDistanceMapImageFilter);
73
75 using InputImageType = TInputImage;
76
78 using InputPixelType = typename InputImageType::PixelType;
79
81 using RegionType = typename InputImageType::RegionType;
82
84 using IndexType = typename RegionType::IndexType;
85
87 using OffsetType = typename InputImageType::OffsetType;
88
90 using SpacingType = typename InputImageType::SpacingType;
91 using SpacingValueType = typename InputImageType::SpacingValueType;
92
94 using SizeType = typename RegionType::SizeType;
95
97 using SizeValueType = typename SizeType::SizeValueType;
98
101 using OutputImageType = TOutputImage;
102
104 using OutputPixelType = typename OutputImageType::PixelType;
105
106 using VoronoiImageType = TVoronoiImage;
107 using VoronoiImagePointer = typename VoronoiImageType::Pointer;
108 using VoronoiPixelType = typename VoronoiImageType::PixelType;
109
111 static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;
112
115
117 using InputImagePointer = typename InputImageType::ConstPointer;
118
120 using OutputImagePointer = typename OutputImageType::Pointer;
121
124
127 itkSetMacro(SquaredDistance, bool);
128 itkGetConstReferenceMacro(SquaredDistance, bool);
129 itkBooleanMacro(SquaredDistance);
137 itkSetMacro(InputIsBinary, bool);
138 itkGetConstReferenceMacro(InputIsBinary, bool);
139 itkBooleanMacro(InputIsBinary);
143 itkSetMacro(UseImageSpacing, bool);
144 itkGetConstReferenceMacro(UseImageSpacing, bool);
145 itkBooleanMacro(UseImageSpacing);
154
165
169
175
176 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
177 static constexpr unsigned int VoronoiImageDimension = TVoronoiImage::ImageDimension;
178
181 itkConceptMacro(DoubleConvertibleToOutputCheck, (Concept::Convertible<double, OutputPixelType>));
183
184protected:
187 void
188 PrintSelf(std::ostream & os, Indent indent) const override;
189
191 void
192 GenerateData() override;
193
195 void
197
199 void
201
203 void
205
206private:
209 bool m_UseImageSpacing{ true };
210
212};
213} // end namespace itk
214
215#ifndef ITK_MANUAL_INSTANTIATION
216# include "itkDanielssonDistanceMapImageFilter.hxx"
217#endif
218
219#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....