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 
32 namespace 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 
135  Image Execute ( const Image& image1 );
136 
137  private:
138 
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 
160  double m_IsolatedValueTolerance{0.001};
161 
162  uint8_t m_ReplaceValue1{1u};
163 
164  uint8_t m_ReplaceValue2{2u};
165 
166 
167  };
168 
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
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
itk::simple::IsolatedWatershedImageFilter::GetReplaceValue1
uint8_t GetReplaceValue1() const
Definition: sitkIsolatedWatershedImageFilter.h:114
sitkBasicFilters.h
itk::simple::IsolatedWatershedImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkIsolatedWatershedImageFilter.h:147
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:29
itk::simple::BasicPixelIDTypeList
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
Definition: sitkPixelIDTypeLists.h:51
itk::simple::IsolatedWatershedImageFilter::GetSeed2
std::vector< uint32_t > GetSeed2() const
Definition: sitkIsolatedWatershedImageFilter.h:74
itk::simple::IsolatedWatershedImageFilter::GetSeed1
std::vector< uint32_t > GetSeed1() const
Definition: sitkIsolatedWatershedImageFilter.h:64
sitkImageFilter.h
itk::simple::IsolatedWatershedImageFilter::SetSeed1
Self & SetSeed1(std::vector< uint32_t > Seed1)
Definition: sitkIsolatedWatershedImageFilter.h:59
itk::simple::IsolatedWatershedImageFilter::SetReplaceValue2
Self & SetReplaceValue2(uint8_t ReplaceValue2)
Definition: sitkIsolatedWatershedImageFilter.h:119
itk::simple::IsolatedWatershedImageFilter
Isolate watershed basins using two seeds.
Definition: sitkIsolatedWatershedImageFilter.h:41
itk::simple::IsolatedWatershedImageFilter::GetName
std::string GetName() const
Definition: sitkIsolatedWatershedImageFilter.h:127
itk::simple::IsolatedWatershedImageFilter::SetSeed2
Self & SetSeed2(std::vector< uint32_t > Seed2)
Definition: sitkIsolatedWatershedImageFilter.h:69
itk::simple::IsolatedWatershedImageFilter::GetIsolatedValueTolerance
double GetIsolatedValueTolerance() const
Definition: sitkIsolatedWatershedImageFilter.h:104
itk::simple::IsolatedWatershedImageFilter::GetReplaceValue2
uint8_t GetReplaceValue2() const
Definition: sitkIsolatedWatershedImageFilter.h:124
itk::simple::IsolatedWatershedImageFilter::GetUpperValueLimit
double GetUpperValueLimit() const
Definition: sitkIsolatedWatershedImageFilter.h:94
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::IsolatedWatershedImageFilter::SetThreshold
Self & SetThreshold(double Threshold)
Definition: sitkIsolatedWatershedImageFilter.h:79
itk::simple::IsolatedWatershedImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1) MemberFunctionType
Definition: sitkIsolatedWatershedImageFilter.h:141
itk::simple::IsolatedWatershedImageFilter::SetReplaceValue1
Self & SetReplaceValue1(uint8_t ReplaceValue1)
Definition: sitkIsolatedWatershedImageFilter.h:109
itk::simple::Threshold
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.
itk::simple::IsolatedWatershedImageFilter::SetUpperValueLimit
Self & SetUpperValueLimit(double UpperValueLimit)
Definition: sitkIsolatedWatershedImageFilter.h:89
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:35
itk::Image
Definition: sitkPixelIDTypes.h:28
itk::simple
Definition: sitkAdditionalProcedures.h:28
itk::simple::IsolatedWatershed
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.
itk::simple::IsolatedWatershedImageFilter::PixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Definition: sitkIsolatedWatershedImageFilter.h:53
itk::simple::IsolatedWatershedImageFilter::GetThreshold
double GetThreshold() const
Definition: sitkIsolatedWatershedImageFilter.h:84
itk::simple::IsolatedWatershedImageFilter::SetIsolatedValueTolerance
Self & SetIsolatedValueTolerance(double IsolatedValueTolerance)
Definition: sitkIsolatedWatershedImageFilter.h:99