OTB  9.0.0
Orfeo Toolbox
otbLabelizeConnectedThresholdImageFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbLabelizeConnectedThresholdImageFilter_h
22 #define otbLabelizeConnectedThresholdImageFilter_h
23 
24 #include "itkConnectedThresholdImageFilter.h"
26 
27 namespace otb
28 {
29 
36 template <class TInputImage, class TOutputImage>
38  : public otb::LabelizeImageFilterBase<TInputImage, TOutputImage, itk::ConnectedThresholdImageFilter<TInputImage, TOutputImage>>
39 {
40 public:
44  typedef itk::SmartPointer<Self> Pointer;
45  typedef itk::SmartPointer<const Self> ConstPointer;
46 
47  typedef TInputImage InputImageType;
48  typedef TOutputImage OutputImageType;
49 
50  typedef typename TInputImage::PixelType InputPixelType;
51  typedef typename TOutputImage::PixelType OutputPixelType;
52  typedef typename TInputImage::IndexType IndexType;
53 
55  itkNewMacro(Self);
56 
59 
61  itkGetMacro(LowerThresholdDelta, InputPixelType);
62 
64  itkSetMacro(LowerThresholdDelta, InputPixelType);
65 
67  itkGetMacro(UpperThresholdDelta, InputPixelType);
68 
70  itkSetMacro(UpperThresholdDelta, InputPixelType);
71 
73  itkGetMacro(ReplaceValue, OutputPixelType);
74 
76  itkSetMacro(ReplaceValue, OutputPixelType);
77 
78 protected:
81  {
82  }
83  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
84 
86  void RegionGrowing(const IndexType indexSeed) override;
87 
88 private:
89  LabelizeConnectedThresholdImageFilter(const Self&) = delete;
90  void operator=(const Self&) = delete;
91 
94 
97 
100 
101 }; // end class LabelizeconnectedThresholdImageFilter
102 
103 } // end namespace otb
104 
105 #ifndef OTB_MANUAL_INSTANTIATION
107 #endif
108 
109 #endif
otb::LabelizeConnectedThresholdImageFilter::m_UpperThresholdDelta
InputPixelType m_UpperThresholdDelta
Definition: otbLabelizeConnectedThresholdImageFilter.h:93
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::LabelizeConnectedThresholdImageFilter
TODO.
Definition: otbLabelizeConnectedThresholdImageFilter.h:37
otb::LabelizeConnectedThresholdImageFilter::InputPixelType
TInputImage::PixelType InputPixelType
Definition: otbLabelizeConnectedThresholdImageFilter.h:50
otb::LabelizeConnectedThresholdImageFilter::IndexType
TInputImage::IndexType IndexType
Definition: otbLabelizeConnectedThresholdImageFilter.h:52
otb::LabelizeConnectedThresholdImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbLabelizeConnectedThresholdImageFilter.h:45
otbLabelizeImageFilterBase.h
otb::LabelizeConnectedThresholdImageFilter::m_ReplaceValue
OutputPixelType m_ReplaceValue
Definition: otbLabelizeConnectedThresholdImageFilter.h:99
otb::LabelizeConnectedThresholdImageFilter::Self
LabelizeConnectedThresholdImageFilter Self
Definition: otbLabelizeConnectedThresholdImageFilter.h:42
otb::LabelizeConnectedThresholdImageFilter::Superclass
otb::LabelizeImageFilterBase< TInputImage, TOutputImage, itk::ConnectedThresholdImageFilter< TInputImage, TOutputImage > > Superclass
Definition: otbLabelizeConnectedThresholdImageFilter.h:43
otb::LabelizeConnectedThresholdImageFilter::OutputPixelType
TOutputImage::PixelType OutputPixelType
Definition: otbLabelizeConnectedThresholdImageFilter.h:51
otbLabelizeConnectedThresholdImageFilter.hxx
otb::LabelizeConnectedThresholdImageFilter::InputImageType
TInputImage InputImageType
Definition: otbLabelizeConnectedThresholdImageFilter.h:47
otb::LabelizeConnectedThresholdImageFilter::~LabelizeConnectedThresholdImageFilter
~LabelizeConnectedThresholdImageFilter() override
Definition: otbLabelizeConnectedThresholdImageFilter.h:80
otb::LabelizeImageFilterBase
Base class for filter labelizing image region based on segmentation.
Definition: otbLabelizeImageFilterBase.h:39
otb::LabelizeConnectedThresholdImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbLabelizeConnectedThresholdImageFilter.h:44
otb::LabelizeConnectedThresholdImageFilter::m_LowerThresholdDelta
InputPixelType m_LowerThresholdDelta
Definition: otbLabelizeConnectedThresholdImageFilter.h:96
otb::LabelizeConnectedThresholdImageFilter::OutputImageType
TOutputImage OutputImageType
Definition: otbLabelizeConnectedThresholdImageFilter.h:48