ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkDirectedHausdorffDistanceImageFilter.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 itkDirectedHausdorffDistanceImageFilter_h
19#define itkDirectedHausdorffDistanceImageFilter_h
20
22#include "itkNumericTraits.h"
23#include "itkArray.h"
25#include <mutex>
26
27namespace itk
28{
73template <typename TInputImage1, typename TInputImage2>
74class ITK_TEMPLATE_EXPORT DirectedHausdorffDistanceImageFilter : public ImageToImageFilter<TInputImage1, TInputImage1>
75{
76public:
77 ITK_DISALLOW_COPY_AND_MOVE(DirectedHausdorffDistanceImageFilter);
78
84
86 itkNewMacro(Self);
87
89 itkOverrideGetNameOfClassMacro(DirectedHausdorffDistanceImageFilter);
90
92 using InputImage1Type = TInputImage1;
93 using InputImage2Type = TInputImage2;
94 using InputImage1Pointer = typename TInputImage1::Pointer;
95 using InputImage2Pointer = typename TInputImage2::Pointer;
96 using InputImage1ConstPointer = typename TInputImage1::ConstPointer;
97 using InputImage2ConstPointer = typename TInputImage2::ConstPointer;
98
99 using RegionType = typename TInputImage1::RegionType;
100 using SizeType = typename TInputImage1::SizeType;
101 using IndexType = typename TInputImage1::IndexType;
102
103 using InputImage1PixelType = typename TInputImage1::PixelType;
104 using InputImage2PixelType = typename TInputImage2::PixelType;
105
107 static constexpr unsigned int ImageDimension = TInputImage1::ImageDimension;
108
111
113 void
115
117 void
119
121 const InputImage1Type *
123
125 const InputImage2Type *
127
129 itkSetMacro(UseImageSpacing, bool);
130 itkGetConstMacro(UseImageSpacing, bool);
131 itkBooleanMacro(UseImageSpacing);
133
135 itkGetConstMacro(DirectedHausdorffDistance, RealType);
136 itkGetConstMacro(AverageHausdorffDistance, RealType);
138
140
141protected:
144 void
145 PrintSelf(std::ostream & os, Indent indent) const override;
146
149 void
150 AllocateOutputs() override;
151
153 void
155
158 void
160
162 void
163 DynamicThreadedGenerateData(const RegionType & regionForThread) override;
164
165
166 // Override since the filter needs all the data for the algorithm
167 void
169
170 // Override since the filter produces all of its output
171 void
173
174private:
176
179
181
184
186
189 bool m_UseImageSpacing{ true };
190
191 std::mutex m_Mutex{};
192}; // end of class
193} // end namespace itk
194
195#ifndef ITK_MANUAL_INSTANTIATION
196# include "itkDirectedHausdorffDistanceImageFilter.hxx"
197#endif
198
199#endif
Perform more precise accumulation of floating point numbers.
Base class for all data objects in ITK.
void DynamicThreadedGenerateData(const RegionType &regionForThread) override
void EnlargeOutputRequestedRegion(DataObject *data) override
void PrintSelf(std::ostream &os, Indent indent) const override
const InputImage1Type * GetInput1()
void SetInput1(const InputImage1Type *image)
ImageToImageFilter< TInputImage1, TInputImage1 > Superclass
void SetInput2(const InputImage2Type *image)
typename NumericTraits< InputImage1PixelType >::RealType RealType
~DirectedHausdorffDistanceImageFilter() override=default
const InputImage2Type * GetInput2()
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType IdentifierType
Definition itkIntTypes.h:90