SimpleITK  
sitkLessImageFilter.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 sitkLessImageFilter_h
19#define sitkLessImageFilter_h
20
21/*
22 * WARNING: DO NOT EDIT THIS FILE!
23 * THIS FILE IS AUTOMATICALLY GENERATED BY THE SIMPLEITK BUILD PROCESS.
24 * Please look at sitkBinaryFunctorFilterTemplate.h.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
30#include "sitkImageFilter.h"
32
33namespace itk::simple {
34
54public:
56
59
63
66
67
68
69
73 void
74 SetBackgroundValue(uint8_t BackgroundValue )
75 { this->m_BackgroundValue = BackgroundValue; }
76
79 uint8_t
80 GetBackgroundValue() const { return this->m_BackgroundValue; }
81
82
86 void
87 SetForegroundValue(uint8_t ForegroundValue )
88 { this->m_ForegroundValue = ForegroundValue; }
89
92 uint8_t
93 GetForegroundValue() const { return this->m_ForegroundValue; }
94
95
97 std::string GetName() const { return std::string("LessImageFilter"); }
98
100 std::string ToString() const;
101
102
104#ifndef SWIG
105 Image Execute(Image&& image1, const Image &image2);
106#endif
107 Image Execute(const Image &image1, const Image &image2);
108
109
111 Image Execute(const Image& image1, double constant);
112#ifndef SWIG
113 Image Execute(Image&& image1, double constant);
114#endif
115 Image Execute(double constant, const Image& image2);
116
117
118
120 Image Execute(const Image& image1, double constant, uint8_t backgroundValue, uint8_t foregroundValue);
121 Image Execute(double constant, const Image& image2, uint8_t backgroundValue, uint8_t foregroundValue);
122
123
124
125
126private:
128 using MemberFunctionType = Image (Self::*)(const Image &image1, const Image &image2);
129 template <class TImageType> Image ExecuteInternal(const Image &image1, const Image &image2);
130
131 using MemberFunction1Type = Image (Self::*)(double constant, const Image& image2);
132 template <class TImageType> Image ExecuteInternal(double constant, const Image& image2);
135
136 using MemberFunction2Type = Image (Self::*)(const Image& image1, double constant);
137 template <class TImageType> Image ExecuteInternal(const Image& image1, double constant);
140
143
144
145 uint8_t m_BackgroundValue{ 0u };
146
147 uint8_t m_ForegroundValue{ 1u };
148
149
150
151
152
153
154
155 bool m_InPlace{false};
156
157};
158
159
168#ifndef SWIG
170 Image&& image1, const Image &image2, uint8_t backgroundValue = 0u, uint8_t foregroundValue = 1u
171);
172
173
174#endif
176 const Image &image1, const Image &image2, uint8_t backgroundValue = 0u, uint8_t foregroundValue = 1u
177);
178
181 const Image& image1, double constant, uint8_t backgroundValue = 0u, uint8_t foregroundValue = 1u
182);
183#ifndef SWIG
185 Image&& image1, double constant, uint8_t backgroundValue = 0u, uint8_t foregroundValue = 1u
186);
187#endif
189 double constant, const Image& image2, uint8_t backgroundValue = 0u, uint8_t foregroundValue = 1u
190);
191}
192#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
BasicPixelIDTypeList PixelIDTypeList
Image(Self::*)(double constant, const Image &image2) MemberFunction1Type
void SetForegroundValue(uint8_t ForegroundValue)
void SetBackgroundValue(uint8_t BackgroundValue)
Image(Self::*)(const Image &image1, const Image &image2) MemberFunctionType
Image Execute(Image &&image1, double constant)
Image(Self::*)(const Image &image1, double constant) MemberFunction2Type
Image Execute(const Image &image1, double constant)
static const detail::MemberFunctionFactory< MemberFunction2Type > & GetMemberFunctionFactory2()
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
Image Execute(const Image &image1, double constant, uint8_t backgroundValue, uint8_t foregroundValue)
static const detail::MemberFunctionFactory< MemberFunction1Type > & GetMemberFunctionFactory1()
Image ExecuteInternal(const Image &image1, const Image &image2)
Image Execute(Image &&image1, const Image &image2)
std::string ToString() const
Image Execute(double constant, const Image &image2)
Image Execute(double constant, const Image &image2, uint8_t backgroundValue, uint8_t foregroundValue)
Image Execute(const Image &image1, const Image &image2)
A class used to instantiate and generate function object to templated member functions.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
Image Less(Image &&image1, const Image &image2, uint8_t backgroundValue=0u, uint8_t foregroundValue=1u)
Implements pixel-wise generic operation of two images, or of an image and a constant.
#define SITKBasicFilters_EXPORT