SimpleITK  2.0.0rc2.post21
sitkMorphologicalWatershedFromMarkersImageFilter.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 sitkMorphologicalWatershedFromMarkersImageFilter_h
19 #define sitkMorphologicalWatershedFromMarkersImageFilter_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 sitkDualImageFilterTemplate.h.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkImageFilter.h"
31 #include "sitkBasicFilters.h"
32 
33 namespace itk {
34  namespace simple {
35 
63  public:
65 
68 
72 
75 
76 \
77 
81  SITK_RETURN_SELF_TYPE_HEADER SetMarkWatershedLine ( bool MarkWatershedLine ) { this->m_MarkWatershedLine = MarkWatershedLine; return *this; }
82 
84  SITK_RETURN_SELF_TYPE_HEADER MarkWatershedLineOn() { return this->SetMarkWatershedLine(true); }
85  SITK_RETURN_SELF_TYPE_HEADER MarkWatershedLineOff() { return this->SetMarkWatershedLine(false); }
86 
90  bool GetMarkWatershedLine() const { return this->m_MarkWatershedLine; }\
91 
95  SITK_RETURN_SELF_TYPE_HEADER SetFullyConnected ( bool FullyConnected ) { this->m_FullyConnected = FullyConnected; return *this; }
96 
98  SITK_RETURN_SELF_TYPE_HEADER FullyConnectedOn() { return this->SetFullyConnected(true); }
99  SITK_RETURN_SELF_TYPE_HEADER FullyConnectedOff() { return this->SetFullyConnected(false); }
100 
104  bool GetFullyConnected() const { return this->m_FullyConnected; }
105 
107  std::string GetName() const { return std::string ("MorphologicalWatershedFromMarkersImageFilter"); }
108 
110  std::string ToString() const;
111 
112 
115  Image Execute ( const Image & image, const Image & markerImage );
116 
117 
118  private:
120  using MemberFunctionType = Image (Self::*)( const Image * image, const Image * markerImage );
121 
123  template <class TImageType1, class TImageType2> Image DualExecuteInternal ( const Image * image, const Image * markerImage );
124 
125 
126  std::unique_ptr<detail::DualMemberFunctionFactory<MemberFunctionType> > m_DualMemberFactory;
127 
128 
129 
130  bool m_MarkWatershedLine{true};
131 
132  bool m_FullyConnected{false};
133 
134 
135  };
136 
147  SITKBasicFilters_EXPORT Image MorphologicalWatershedFromMarkers ( const Image & image, const Image & markerImage, bool markWatershedLine = true, bool fullyConnected = false );
148 
150  }
151 }
152 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
sitkBasicFilters.h
itk::simple::MorphologicalWatershedFromMarkersImageFilter::MemberFunctionType
Image(Self::*)(const Image *image, const Image *markerImage) MemberFunctionType
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:120
itk::simple::MorphologicalWatershedFromMarkersImageFilter::MarkWatershedLineOn
Self & MarkWatershedLineOn()
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:84
itk::simple::ScalarPixelIDTypeList
BasicPixelIDTypeList ScalarPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:59
itk::simple::MorphologicalWatershedFromMarkersImageFilter::FullyConnectedOff
Self & FullyConnectedOff()
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:99
itk::simple::MorphologicalWatershedFromMarkersImageFilter
Morphological watershed transform from markers.
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:62
sitkImageFilter.h
itk::simple::MorphologicalWatershedFromMarkersImageFilter::MarkWatershedLineOff
Self & MarkWatershedLineOff()
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:85
itk::simple::MorphologicalWatershedFromMarkersImageFilter::SetFullyConnected
Self & SetFullyConnected(bool FullyConnected)
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:95
itk::simple::MorphologicalWatershedFromMarkersImageFilter::SetMarkWatershedLine
Self & SetMarkWatershedLine(bool MarkWatershedLine)
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:81
itk::simple::MorphologicalWatershedFromMarkers
Image MorphologicalWatershedFromMarkers(const Image &image, const Image &markerImage, bool markWatershedLine=true, bool fullyConnected=false)
Morphological watershed transform from markers.
itk::simple::MorphologicalWatershedFromMarkersImageFilter::GetName
std::string GetName() const
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:107
itk::simple::MorphologicalWatershedFromMarkersImageFilter::FullyConnectedOn
Self & FullyConnectedOn()
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:98
sitkDualMemberFunctionFactory.h
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::MorphologicalWatershedFromMarkersImageFilter::PixelIDTypeList
ScalarPixelIDTypeList PixelIDTypeList
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:74
itk::simple::detail::DualExecuteInternalAddressor
Definition: sitkDetail.h:44
itk
itk::simple::MorphologicalWatershedFromMarkersImageFilter::m_DualMemberFactory
std::unique_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:126
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::Image
Definition: sitkPixelIDTypes.h:26
itk::simple::MorphologicalWatershedFromMarkersImageFilter::GetFullyConnected
bool GetFullyConnected() const
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:104
itk::simple::MorphologicalWatershedFromMarkersImageFilter::GetMarkWatershedLine
bool GetMarkWatershedLine() const
Definition: sitkMorphologicalWatershedFromMarkersImageFilter.h:90