ITK
6.0.0
Insight Toolkit
Loading...
Searching...
No Matches
itkVotingBinaryImageFilter.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 itkVotingBinaryImageFilter_h
19
#define itkVotingBinaryImageFilter_h
20
21
#include "
itkImageToImageFilter.h
"
22
23
namespace
itk
24
{
39
template
<
typename
TInputImage,
typename
TOutputImage>
40
class
ITK_TEMPLATE_EXPORT
VotingBinaryImageFilter
:
public
ImageToImageFilter
<TInputImage, TOutputImage>
41
{
42
public
:
43
ITK_DISALLOW_COPY_AND_MOVE(
VotingBinaryImageFilter
);
44
46
static
constexpr
unsigned
int
InputImageDimension
= TInputImage::ImageDimension;
47
static
constexpr
unsigned
int
OutputImageDimension
= TOutputImage::ImageDimension;
48
50
using
InputImageType
= TInputImage;
51
using
OutputImageType
= TOutputImage;
52
54
using
Self
=
VotingBinaryImageFilter
;
55
using
Superclass
=
ImageToImageFilter<InputImageType, OutputImageType>
;
56
using
Pointer
=
SmartPointer<Self>
;
57
using
ConstPointer
=
SmartPointer<const Self>
;
58
60
itkNewMacro(
Self
);
61
63
itkOverrideGetNameOfClassMacro(
VotingBinaryImageFilter
);
64
66
using
InputPixelType
=
typename
InputImageType::PixelType;
67
using
OutputPixelType
=
typename
OutputImageType::PixelType;
68
69
using
InputImageRegionType
=
typename
InputImageType::RegionType;
70
using
OutputImageRegionType
=
typename
OutputImageType::RegionType;
71
72
using
InputSizeType
=
typename
InputImageType::SizeType;
73
75
itkSetMacro(Radius,
InputSizeType
);
76
78
itkGetConstReferenceMacro(Radius,
InputSizeType
);
79
82
itkSetMacro(BackgroundValue,
InputPixelType
);
83
itkSetMacro(ForegroundValue,
InputPixelType
);
85
88
itkGetConstReferenceMacro(BackgroundValue,
InputPixelType
);
89
itkGetConstReferenceMacro(ForegroundValue,
InputPixelType
);
91
94
itkGetConstReferenceMacro(BirthThreshold,
unsigned
int
);
95
itkSetMacro(BirthThreshold,
unsigned
int
);
97
100
itkGetConstReferenceMacro(SurvivalThreshold,
unsigned
int
);
101
itkSetMacro(SurvivalThreshold,
unsigned
int
);
103
110
void
111
GenerateInputRequestedRegion
()
override
;
112
113
itkConceptMacro
(InputEqualityComparableCheck, (
Concept::EqualityComparable<InputPixelType>
));
114
itkConceptMacro
(IntConvertibleToInputCheck, (
Concept::Convertible<int, InputPixelType>
));
115
itkConceptMacro
(InputConvertibleToOutputCheck, (
Concept::Convertible<InputPixelType, OutputPixelType>
));
116
itkConceptMacro
(SameDimensionCheck, (
Concept::SameDimension<InputImageDimension, OutputImageDimension>
));
117
itkConceptMacro
(InputOStreamWritableCheck, (
Concept::OStreamWritable<InputPixelType>
));
118
119
protected
:
120
VotingBinaryImageFilter
();
121
~VotingBinaryImageFilter
()
override
=
default
;
122
void
123
PrintSelf
(std::ostream & os,
Indent
indent)
const override
;
124
135
void
136
DynamicThreadedGenerateData
(
const
OutputImageRegionType
& outputRegionForThread)
override
;
137
138
private
:
139
InputSizeType
m_Radius
{};
140
141
InputPixelType
m_ForegroundValue
{};
142
InputPixelType
m_BackgroundValue
{};
143
144
unsigned
int
m_BirthThreshold
{};
145
unsigned
int
m_SurvivalThreshold
{};
146
};
147
}
// end namespace itk
148
149
#ifndef ITK_MANUAL_INSTANTIATION
150
# include "itkVotingBinaryImageFilter.hxx"
151
#endif
152
153
#endif
itk::ImageToImageFilter::ImageToImageFilter
ImageToImageFilter()
itk::Indent
Control indentation during Print() invocation.
Definition
itkIndent.h:50
itk::SmartPointer
Implements transparent reference counting.
Definition
itkSmartPointer.h:52
itk::VotingBinaryImageFilter::~VotingBinaryImageFilter
~VotingBinaryImageFilter() override=default
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition
itkVotingBinaryImageFilter.h:69
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::m_Radius
InputSizeType m_Radius
Definition
itkVotingBinaryImageFilter.h:139
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::InputImageType
InputImageType InputImageType
Definition
itkVotingBinaryImageFilter.h:50
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::m_ForegroundValue
InputPixelType m_ForegroundValue
Definition
itkVotingBinaryImageFilter.h:141
itk::VotingBinaryImageFilter::DynamicThreadedGenerateData
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
itk::VotingBinaryImageFilter::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::VotingBinaryImageFilter::GenerateInputRequestedRegion
void GenerateInputRequestedRegion() override
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::OutputImageDimension
static constexpr unsigned int OutputImageDimension
Definition
itkVotingBinaryImageFilter.h:47
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::InputSizeType
typename InputImageType::SizeType InputSizeType
Definition
itkVotingBinaryImageFilter.h:72
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::m_BirthThreshold
unsigned int m_BirthThreshold
Definition
itkVotingBinaryImageFilter.h:144
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::ConstPointer
SmartPointer< const Self > ConstPointer
Definition
itkVotingBinaryImageFilter.h:57
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition
itkVotingBinaryImageFilter.h:70
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::m_BackgroundValue
InputPixelType m_BackgroundValue
Definition
itkVotingBinaryImageFilter.h:142
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::OutputImageType
OutputImageType OutputImageType
Definition
itkVotingBinaryImageFilter.h:51
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition
itkVotingBinaryImageFilter.h:67
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::m_SurvivalThreshold
unsigned int m_SurvivalThreshold
Definition
itkVotingBinaryImageFilter.h:145
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::InputImageDimension
static constexpr unsigned int InputImageDimension
Definition
itkVotingBinaryImageFilter.h:46
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition
itkVotingBinaryImageFilter.h:66
itk::VotingBinaryImageFilter::VotingBinaryImageFilter
VotingBinaryImageFilter()
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::Self
VotingBinaryImageFilter Self
Definition
itkVotingBinaryImageFilter.h:54
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::Pointer
SmartPointer< Self > Pointer
Definition
itkVotingBinaryImageFilter.h:56
itk::VotingBinaryImageFilter< InputImageType, OutputImageType >::Superclass
ImageToImageFilter< InputImageType, OutputImageType > Superclass
Definition
itkVotingBinaryImageFilter.h:55
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition
itkConceptChecking.h:65
itkImageToImageFilter.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition
itkAnatomicalOrientation.h:30
itk::Concept::Convertible
Definition
itkConceptChecking.h:218
itk::Concept::EqualityComparable
Definition
itkConceptChecking.h:308
itk::Concept::OStreamWritable
Definition
itkConceptChecking.h:640
itk::Concept::SameDimension
Definition
itkConceptChecking.h:698
ITK
Modules
Segmentation
LabelVoting
include
itkVotingBinaryImageFilter.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
.