ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkContourDirectedMeanDistanceImageFilter.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 itkContourDirectedMeanDistanceImageFilter_h
19#define itkContourDirectedMeanDistanceImageFilter_h
20
22#include "itkNumericTraits.h"
23#include "itkArray.h"
24#include "itkImage.h"
25
26namespace itk
27{
63template <typename TInputImage1, typename TInputImage2>
64class ITK_TEMPLATE_EXPORT ContourDirectedMeanDistanceImageFilter : public ImageToImageFilter<TInputImage1, TInputImage1>
65{
66public:
67 ITK_DISALLOW_COPY_AND_MOVE(ContourDirectedMeanDistanceImageFilter);
68
74
76 itkNewMacro(Self);
77
79 itkOverrideGetNameOfClassMacro(ContourDirectedMeanDistanceImageFilter);
80
82 using InputImage1Type = TInputImage1;
83 using InputImage2Type = TInputImage2;
84 using InputImage1Pointer = typename TInputImage1::Pointer;
85 using InputImage2Pointer = typename TInputImage2::Pointer;
86 using InputImage1ConstPointer = typename TInputImage1::ConstPointer;
87 using InputImage2ConstPointer = typename TInputImage2::ConstPointer;
88
89 using RegionType = typename TInputImage1::RegionType;
90 using SizeType = typename TInputImage1::SizeType;
91 using IndexType = typename TInputImage1::IndexType;
92
93 using InputImage1PixelType = typename TInputImage1::PixelType;
94 using InputImage2PixelType = typename TInputImage2::PixelType;
95
97 static constexpr unsigned int ImageDimension = TInputImage1::ImageDimension;
98
101
103 void
105
107 void
109
111 const InputImage1Type *
113
115 const InputImage2Type *
117
119 itkGetConstMacro(ContourDirectedMeanDistance, RealType);
120
122 itkSetMacro(UseImageSpacing, bool);
123 itkGetConstMacro(UseImageSpacing, bool);
124 itkBooleanMacro(UseImageSpacing);
126
128
129protected:
132 void
133 PrintSelf(std::ostream & os, Indent indent) const override;
134
137 void
138 AllocateOutputs() override;
139
141 void
143
146 void
148
150 void
151 ThreadedGenerateData(const RegionType & outputRegionForThread, ThreadIdType threadId) override;
152
153 void
155 {
156 itkExceptionMacro("This class requires threadId so it must use classic multi-threading model");
157 }
158
159 // Override since the filter needs all the data for the algorithm
160 void
162
163 // Override since the filter produces all of its output
164 void
166
167private:
169
171
175 bool m_UseImageSpacing{ true };
176};
177} // end namespace itk
178
179#ifndef ITK_MANUAL_INSTANTIATION
180# include "itkContourDirectedMeanDistanceImageFilter.hxx"
181#endif
182
183#endif
Array class with size defined at construction time.
Definition itkArray.h:48
void ThreadedGenerateData(const RegionType &outputRegionForThread, ThreadIdType threadId) override
void EnlargeOutputRequestedRegion(DataObject *data) override
void SetInput1(const InputImage1Type *image)
~ContourDirectedMeanDistanceImageFilter() override=default
ImageToImageFilter< TInputImage1, TInputImage1 > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
typename NumericTraits< InputImage1PixelType >::RealType RealType
void SetInput2(const InputImage2Type *image)
Base class for all data objects in ITK.
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....
unsigned int ThreadIdType