SimpleITK  
sitkReconstructionByErosionImageFilter.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 sitkReconstructionByErosionImageFilter_h
19#define sitkReconstructionByErosionImageFilter_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 sitkImageFilterTemplate.h.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
30#include "sitkImageFilter.h"
32
33namespace itk::simple {
34
66public:
68
71
75
78
79
80
81
84 void
85 SetFullyConnected(bool FullyConnected )
86 { this->m_FullyConnected = FullyConnected; }
87
89 void
90 FullyConnectedOn() { return this->SetFullyConnected(true); }
91 void
92 FullyConnectedOff() { return this->SetFullyConnected(false); }
95 bool
96 GetFullyConnected() const { return this->m_FullyConnected; }
97
98
101 void
102 SetUseInternalCopy(bool UseInternalCopy )
103 { this->m_UseInternalCopy = UseInternalCopy; }
104
106 void
107 UseInternalCopyOn() { return this->SetUseInternalCopy(true); }
108 void
109 UseInternalCopyOff() { return this->SetUseInternalCopy(false); }
112 bool
113 GetUseInternalCopy() const { return this->m_UseInternalCopy; }
114
115
117 std::string GetName() const { return std::string("ReconstructionByErosionImageFilter"); }
118
120 std::string ToString() const;
121
122
124 Image Execute(const Image &markerImage, const Image &maskImage);
125
126
127private:
129 using MemberFunctionType = Image (Self::*)(const Image *
130 markerImage, const Image *
131 maskImage);
132 template <class TImageType> Image ExecuteInternal(const Image *
133 markerImage, const Image *
134 maskImage);
137
138
139 bool m_FullyConnected{ false };
140
141 bool m_UseInternalCopy{ true };
142
143
144
145
146
147
148
149};
150
151
161 const Image &markerImage, const Image &maskImage, bool fullyConnected = false, bool useInternalCopy = true
162);
163
165
166}
167#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
Image Execute(const Image &markerImage, const Image &maskImage)
Image ExecuteInternal(const Image *markerImage, const Image *maskImage)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
Image(Self::*)(const Image * markerImage, const Image * maskImage) MemberFunctionType
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 ReconstructionByErosion(const Image &markerImage, const Image &maskImage, bool fullyConnected=false, bool useInternalCopy=true)
grayscale reconstruction by erosion of an image
#define SITKBasicFilters_EXPORT