ITK
5.2.0
Insight Toolkit
ITK
Modules
Filtering
ImageIntensity
include
itkAddImageFilter.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
* http://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 itkAddImageFilter_h
19
#define itkAddImageFilter_h
20
21
#include "
itkBinaryGeneratorImageFilter.h
"
22
#include "
itkArithmeticOpsFunctors.h
"
23
#include "
itkNumericTraits.h
"
24
25
namespace
itk
26
{
27
79
template
<
typename
TInputImage1,
typename
TInputImage2 = TInputImage1,
typename
TOutputImage = TInputImage1>
80
class
ITK_TEMPLATE_EXPORT
AddImageFilter
:
public
BinaryGeneratorImageFilter
<TInputImage1, TInputImage2, TOutputImage>
82
83
{
84
public
:
85
ITK_DISALLOW_COPY_AND_MOVE(
AddImageFilter
);
86
88
using
Self
=
AddImageFilter
;
89
using
Superclass
=
BinaryGeneratorImageFilter<TInputImage1, TInputImage2, TOutputImage>
;
90
91
92
using
Pointer
=
SmartPointer<Self>
;
93
using
ConstPointer
=
SmartPointer<const Self>
;
94
95
using
FunctorType
=
96
Functor::Add2<typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType>
;
97
99
itkNewMacro(
Self
);
100
102
itkTypeMacro(
AddImageFilter
,
BinaryGeneratorImageFilter
);
103
104
#ifdef ITK_USE_CONCEPT_CHECKING
105
// Begin concept checking
106
itkConceptMacro
(Input1Input2OutputAdditiveOperatorsCheck,
107
(
Concept::AdditiveOperators
<
typename
TInputImage1::PixelType,
108
typename
TInputImage2::PixelType,
109
typename
TOutputImage::PixelType>));
110
// End concept checking
111
#endif
112
113
protected
:
114
AddImageFilter
()
115
{
116
#if !defined(ITK_WRAPPING_PARSER)
117
Superclass::SetFunctor(
FunctorType
());
118
#endif
119
}
120
~
AddImageFilter
()
override
=
default
;
121
};
122
}
// end namespace itk
123
124
#endif
itk::AddImageFilter::AddImageFilter
AddImageFilter()
Definition:
itkAddImageFilter.h:114
itk::BinaryGeneratorImageFilter
Implements pixel-wise generic operation of two images, or of an image and a constant.
Definition:
itkBinaryGeneratorImageFilter.h:56
itk::SmartPointer< Self >
itkBinaryGeneratorImageFilter.h
itk::ImageSource
Base class for all process objects that output image data.
Definition:
itkImageSource.h:67
itkArithmeticOpsFunctors.h
itk::Functor::Add2
Definition:
itkArithmeticOpsFunctors.h:34
itk::Concept::AdditiveOperators
Definition:
itkConceptChecking.h:358
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition:
itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition:
itkAnnulusOperator.h:24
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition:
itkProcessObject.h:138
itk::AddImageFilter
Pixel-wise addition of two images.
Definition:
itkAddImageFilter.h:80
itkNumericTraits.h
Generated on Thu Apr 1 2021 01:34:14 for ITK by
1.8.16