ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkContourMeanDistanceImageFilter.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 itkContourMeanDistanceImageFilter_h
19#define itkContourMeanDistanceImageFilter_h
20
22#include "itkNumericTraits.h"
23
24namespace itk
25{
69template <typename TInputImage1, typename TInputImage2>
70class ITK_TEMPLATE_EXPORT ContourMeanDistanceImageFilter : public ImageToImageFilter<TInputImage1, TInputImage1>
71{
72public:
73 ITK_DISALLOW_COPY_AND_MOVE(ContourMeanDistanceImageFilter);
75
81
83 itkNewMacro(Self);
84
86 itkOverrideGetNameOfClassMacro(ContourMeanDistanceImageFilter);
87
89 using InputImage1Type = TInputImage1;
90 using InputImage2Type = TInputImage2;
91 using InputImage1Pointer = typename TInputImage1::Pointer;
92 using InputImage2Pointer = typename TInputImage2::Pointer;
93 using InputImage1ConstPointer = typename TInputImage1::ConstPointer;
94 using InputImage2ConstPointer = typename TInputImage2::ConstPointer;
95
96 using RegionType = typename TInputImage1::RegionType;
97 using SizeType = typename TInputImage1::SizeType;
98 using IndexType = typename TInputImage1::IndexType;
99
100 using InputImage1PixelType = typename TInputImage1::PixelType;
101 using InputImage2PixelType = typename TInputImage2::PixelType;
102
104 static constexpr unsigned int ImageDimension = TInputImage1::ImageDimension;
105
108
110 void
112
114 void
116
118 const InputImage1Type *
120
122 const InputImage2Type *
124
126 itkGetConstMacro(MeanDistance, RealType);
127
129 itkSetMacro(UseImageSpacing, bool);
130 itkGetConstMacro(UseImageSpacing, bool);
131 itkBooleanMacro(UseImageSpacing);
133
135
136protected:
139 void
140 PrintSelf(std::ostream & os, Indent indent) const override;
141
143 void
144 GenerateData() override;
145
146 // Override since the filter needs all the data for the algorithm
147 void
149
150 // Override since the filter produces all of its output
151 void
153
154private:
156 bool m_UseImageSpacing{ true };
157}; // end of class
158} // end namespace itk
159
160#ifndef ITK_MANUAL_INSTANTIATION
161# include "itkContourMeanDistanceImageFilter.hxx"
162#endif
163
164#endif
typename NumericTraits< InputImage1PixelType >::RealType RealType
void GenerateInputRequestedRegion() override
typename TInputImage1::PixelType InputImage1PixelType
ImageToImageFilter< TInputImage1, TInputImage1 > Superclass
void SetInput2(const InputImage2Type *image)
void PrintSelf(std::ostream &os, Indent indent) const override
typename TInputImage2::PixelType InputImage2PixelType
void SetInput1(const InputImage1Type *image)
~ContourMeanDistanceImageFilter() override=default
const InputImage2Type * GetInput2()
typename TInputImage1::ConstPointer InputImage1ConstPointer
typename TInputImage2::ConstPointer InputImage2ConstPointer
const InputImage1Type * GetInput1()
void EnlargeOutputRequestedRegion(DataObject *data) override
Base class for all data objects in ITK.
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....