ITK
6.0.0
Insight Toolkit
Loading...
Searching...
No Matches
itkSimpleContourExtractorImageFilter.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 itkSimpleContourExtractorImageFilter_h
19
#define itkSimpleContourExtractorImageFilter_h
20
21
#include "
itkBoxImageFilter.h
"
22
#include "
itkImage.h
"
23
#include "
itkNumericTraits.h
"
24
25
namespace
itk
26
{
52
template
<
typename
TInputImage,
typename
TOutputImage>
53
class
ITK_TEMPLATE_EXPORT
SimpleContourExtractorImageFilter
:
public
BoxImageFilter
<TInputImage, TOutputImage>
54
{
55
public
:
56
ITK_DISALLOW_COPY_AND_MOVE(
SimpleContourExtractorImageFilter
);
57
59
static
constexpr
unsigned
int
InputImageDimension
= TInputImage::ImageDimension;
60
static
constexpr
unsigned
int
OutputImageDimension
= TOutputImage::ImageDimension;
61
63
using
InputImageType
= TInputImage;
64
using
OutputImageType
= TOutputImage;
65
67
using
Self
=
SimpleContourExtractorImageFilter
;
68
using
Superclass
=
BoxImageFilter<InputImageType, OutputImageType>
;
69
using
Pointer
=
SmartPointer<Self>
;
70
using
ConstPointer
=
SmartPointer<const Self>
;
71
73
itkNewMacro(
Self
);
74
76
itkOverrideGetNameOfClassMacro(
SimpleContourExtractorImageFilter
);
77
79
using
InputPixelType
=
typename
InputImageType::PixelType;
80
using
OutputPixelType
=
typename
OutputImageType::PixelType;
81
using
InputRealType
=
typename
NumericTraits<InputPixelType>::RealType
;
82
83
using
InputImageRegionType
=
typename
InputImageType::RegionType;
84
using
OutputImageRegionType
=
typename
OutputImageType::RegionType;
85
86
using
InputSizeType
=
typename
InputImageType::SizeType;
87
90
itkSetMacro(InputForegroundValue,
InputPixelType
);
91
94
itkGetConstReferenceMacro(InputForegroundValue,
InputPixelType
);
95
98
itkSetMacro(InputBackgroundValue,
InputPixelType
);
99
102
itkGetConstReferenceMacro(InputBackgroundValue,
InputPixelType
);
103
106
itkSetMacro(OutputForegroundValue,
OutputPixelType
);
107
110
itkGetConstReferenceMacro(OutputForegroundValue,
OutputPixelType
);
111
114
itkSetMacro(OutputBackgroundValue,
OutputPixelType
);
115
118
itkGetConstReferenceMacro(OutputBackgroundValue,
OutputPixelType
);
119
120
itkConceptMacro
(InputHasNumericTraitsCheck, (
Concept::HasNumericTraits<InputPixelType>
));
121
itkConceptMacro
(OutputHasNumericTraitsCheck, (
Concept::HasNumericTraits<OutputPixelType>
));
122
123
protected
:
124
SimpleContourExtractorImageFilter
();
125
~SimpleContourExtractorImageFilter
()
override
=
default
;
126
void
127
PrintSelf
(std::ostream & os,
Indent
indent)
const override
;
128
141
void
142
DynamicThreadedGenerateData
(
const
OutputImageRegionType
& outputRegionForThread)
override
;
143
144
145
private
:
146
InputPixelType
m_InputForegroundValue
{};
147
InputPixelType
m_InputBackgroundValue
{};
148
OutputPixelType
m_OutputForegroundValue
{};
149
OutputPixelType
m_OutputBackgroundValue
{};
150
};
151
}
// end namespace itk
152
153
#ifndef ITK_MANUAL_INSTANTIATION
154
# include "itkSimpleContourExtractorImageFilter.hxx"
155
#endif
156
157
#endif
itk::BoxImageFilter::BoxImageFilter
BoxImageFilter()
itk::Indent
Control indentation during Print() invocation.
Definition
itkIndent.h:50
itk::NumericTraits::RealType
double RealType
Definition
itkNumericTraits.h:86
itk::SimpleContourExtractorImageFilter::Pointer
SmartPointer< Self > Pointer
Definition
itkSimpleContourExtractorImageFilter.h:69
itk::SimpleContourExtractorImageFilter::m_OutputForegroundValue
OutputPixelType m_OutputForegroundValue
Definition
itkSimpleContourExtractorImageFilter.h:148
itk::SimpleContourExtractorImageFilter::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition
itkSimpleContourExtractorImageFilter.h:83
itk::SimpleContourExtractorImageFilter::Self
SimpleContourExtractorImageFilter Self
Definition
itkSimpleContourExtractorImageFilter.h:67
itk::SimpleContourExtractorImageFilter::~SimpleContourExtractorImageFilter
~SimpleContourExtractorImageFilter() override=default
itk::SimpleContourExtractorImageFilter::InputImageType
TInputImage InputImageType
Definition
itkSimpleContourExtractorImageFilter.h:63
itk::SimpleContourExtractorImageFilter::SimpleContourExtractorImageFilter
SimpleContourExtractorImageFilter()
itk::SimpleContourExtractorImageFilter::ConstPointer
SmartPointer< const Self > ConstPointer
Definition
itkSimpleContourExtractorImageFilter.h:70
itk::SimpleContourExtractorImageFilter::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition
itkSimpleContourExtractorImageFilter.h:79
itk::SimpleContourExtractorImageFilter::m_InputForegroundValue
InputPixelType m_InputForegroundValue
Definition
itkSimpleContourExtractorImageFilter.h:146
itk::SimpleContourExtractorImageFilter::InputRealType
typename NumericTraits< InputPixelType >::RealType InputRealType
Definition
itkSimpleContourExtractorImageFilter.h:81
itk::SimpleContourExtractorImageFilter::m_InputBackgroundValue
InputPixelType m_InputBackgroundValue
Definition
itkSimpleContourExtractorImageFilter.h:147
itk::SimpleContourExtractorImageFilter::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition
itkSimpleContourExtractorImageFilter.h:84
itk::SimpleContourExtractorImageFilter::OutputImageType
TOutputImage OutputImageType
Definition
itkSimpleContourExtractorImageFilter.h:64
itk::SimpleContourExtractorImageFilter::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::SimpleContourExtractorImageFilter::m_OutputBackgroundValue
OutputPixelType m_OutputBackgroundValue
Definition
itkSimpleContourExtractorImageFilter.h:149
itk::SimpleContourExtractorImageFilter::InputImageDimension
static constexpr unsigned int InputImageDimension
Definition
itkSimpleContourExtractorImageFilter.h:59
itk::SimpleContourExtractorImageFilter::InputSizeType
typename InputImageType::SizeType InputSizeType
Definition
itkSimpleContourExtractorImageFilter.h:86
itk::SimpleContourExtractorImageFilter::Superclass
BoxImageFilter< InputImageType, OutputImageType > Superclass
Definition
itkSimpleContourExtractorImageFilter.h:68
itk::SimpleContourExtractorImageFilter::DynamicThreadedGenerateData
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
itk::SimpleContourExtractorImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition
itkSimpleContourExtractorImageFilter.h:80
itk::SimpleContourExtractorImageFilter::OutputImageDimension
static constexpr unsigned int OutputImageDimension
Definition
itkSimpleContourExtractorImageFilter.h:60
itk::SmartPointer
Implements transparent reference counting.
Definition
itkSmartPointer.h:52
itkBoxImageFilter.h
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition
itkConceptChecking.h:65
itkImage.h
itkNumericTraits.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition
itkAnatomicalOrientation.h:30
itk::Concept::HasNumericTraits
Definition
itkConceptChecking.h:718
ITK
Modules
Filtering
ImageFeature
include
itkSimpleContourExtractorImageFilter.h
Generated on
unknown
for ITK by
1.13.2
Tarballs of release and nightly generated Doxygen documentation are available in the
InsightSoftwareConsortium/ITKDoxygen
GitHub Releases
.