SimpleITK  
sitkIsolatedWatershedImageFilter.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 sitkIsolatedWatershedImageFilter_h
19#define sitkIsolatedWatershedImageFilter_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.in to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
30#include "sitkImageFilter.h"
31
32namespace itk::simple {
33
42 public:
44
47
51
54\
55
59 SITK_RETURN_SELF_TYPE_HEADER SetSeed1 ( std::vector<uint32_t> Seed1 ) { this->m_Seed1 = std::move(Seed1); return *this; }
60
64 std::vector<uint32_t> GetSeed1() const { return this->m_Seed1; }\
65
69 SITK_RETURN_SELF_TYPE_HEADER SetSeed2 ( std::vector<uint32_t> Seed2 ) { this->m_Seed2 = std::move(Seed2); return *this; }
70
74 std::vector<uint32_t> GetSeed2() const { return this->m_Seed2; }\
75
79 SITK_RETURN_SELF_TYPE_HEADER SetThreshold ( double Threshold ) { this->m_Threshold = Threshold; return *this; }
80
84 double GetThreshold() const { return this->m_Threshold; }\
85
89 SITK_RETURN_SELF_TYPE_HEADER SetUpperValueLimit ( double UpperValueLimit ) { this->m_UpperValueLimit = UpperValueLimit; return *this; }
90
94 double GetUpperValueLimit() const { return this->m_UpperValueLimit; }\
95
99 SITK_RETURN_SELF_TYPE_HEADER SetIsolatedValueTolerance ( double IsolatedValueTolerance ) { this->m_IsolatedValueTolerance = IsolatedValueTolerance; return *this; }
100
104 double GetIsolatedValueTolerance() const { return this->m_IsolatedValueTolerance; }\
105
109 SITK_RETURN_SELF_TYPE_HEADER SetReplaceValue1 ( uint8_t ReplaceValue1 ) { this->m_ReplaceValue1 = ReplaceValue1; return *this; }
110
114 uint8_t GetReplaceValue1() const { return this->m_ReplaceValue1; }\
115
119 SITK_RETURN_SELF_TYPE_HEADER SetReplaceValue2 ( uint8_t ReplaceValue2 ) { this->m_ReplaceValue2 = ReplaceValue2; return *this; }
120
124 uint8_t GetReplaceValue2() const { return this->m_ReplaceValue2; }
125
127 std::string GetName() const { return std::string ("IsolatedWatershedImageFilter"); }
128
130 std::string ToString() const;
131
132
134
135 Image Execute ( const Image& image1 );
136
137 private:
138
140
141 using MemberFunctionType = Image (Self::*)( const Image& image1 );
142 template <class TImageType> Image ExecuteInternal ( const Image& image1 );
143
144
146
147 std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
148
149
150 /* */
151 std::vector<uint32_t> m_Seed1{std::vector<uint32_t>(3, 0)};
152
153 /* */
154 std::vector<uint32_t> m_Seed2{std::vector<uint32_t>(3, 0)};
155
156 double m_Threshold{0.0};
157
158 double m_UpperValueLimit{1.0};
159
161
162 uint8_t m_ReplaceValue1{1u};
163
164 uint8_t m_ReplaceValue2{2u};
165
166
167 };
168
178
179 SITKBasicFilters_EXPORT Image IsolatedWatershed ( const Image& image1, std::vector<uint32_t> seed1 = std::vector<uint32_t>(3, 0), std::vector<uint32_t> seed2 = std::vector<uint32_t>(3, 0), double threshold = 0.0, double upperValueLimit = 1.0, double isolatedValueTolerance = 0.001, uint8_t replaceValue1 = 1u, uint8_t replaceValue2 = 2u );
180
182}
183#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetIsolatedValueTolerance(double IsolatedValueTolerance)
Image ExecuteInternal(const Image &image1)
Image Execute(const Image &image1)
Image Threshold(Image &&image1, double lower=0.0, double upper=1.0, double outsideValue=0.0)
Set image values to a user-specified value if they are below, above, or outside threshold values.
Image IsolatedWatershed(const Image &image1, std::vector< uint32_t > seed1=std::vector< uint32_t >(3, 0), std::vector< uint32_t > seed2=std::vector< uint32_t >(3, 0), double threshold=0.0, double upperValueLimit=1.0, double isolatedValueTolerance=0.001, uint8_t replaceValue1=1u, uint8_t replaceValue2=2u)
Isolate watershed basins using two seeds.
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
#define SITKBasicFilters_EXPORT