OTB  6.7.0
Orfeo Toolbox
otbGeodesicMorphologyDecompositionImageFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 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 otbGeodesicMorphologyDecompositionImageFilter_h
22 #define otbGeodesicMorphologyDecompositionImageFilter_h
23 
25 #include "itkSubtractImageFilter.h"
28 #include "otbMacro.h"
29 
30 namespace otb
31 {
84 template <class TInputImage, class TOutputImage, class TStructuringElement>
86  : public itk::ImageToImageFilter<TInputImage, TOutputImage>
87 {
88 public:
94 
96  itkNewMacro(Self);
97 
99  itkTypeMacro(GeodesicMorphologyDecompositionImageFilter, ImageToImageFilter);
100 
102  typedef TInputImage InputImageType;
103  typedef TOutputImage OutputImageType;
104 
105  typedef TStructuringElement
107  typedef typename StructuringElementType::RadiusType RadiusType;
118 
125 
127  itkSetMacro(Radius, RadiusType);
128  itkGetConstReferenceMacro(Radius, RadiusType);
130 
135  OutputImageType * GetConvexMap(void);
136 
141  OutputImageType * GetConcaveMap(void);
142 
144  itkSetMacro(FullyConnected, bool);
145  itkGetMacro(FullyConnected, bool);
146 
148  itkSetMacro(PreserveIntensities, bool);
149  itkGetMacro(PreserveIntensities, bool);
151 
152 protected:
154  void GenerateData(void) override;
155 
158 
161 
163  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
164 
165 private:
166  GeodesicMorphologyDecompositionImageFilter(const Self &) = delete;
167  void operator =(const Self&) = delete;
168 
171 
174 
177 
180 
183 
186 
189 
192 
195 
196 };
197 } // End namespace otb
198 #ifndef OTB_MANUAL_INSTANTIATION
200 #endif
201 
202 #endif
itk::ClosingByReconstructionImageFilter< InputImageType, InputImageType, StructuringElementType > ClosingFilterType
itk::OpeningByReconstructionImageFilter< InputImageType, InputImageType, StructuringElementType > OpeningFilterType
This class implements a geodesic morphology based image analysis algorithm.
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
TInputImage InputImageType
A generic functor filter templated by its functor.
otb::GeodesicMorphologyLevelingFilter< InputImageType, OutputImageType, OutputImageType > LevelingFilterType
itk::SubtractImageFilter< OutputImageType, InputImageType, OutputImageType > ConcaveFilterType
TOutputImage OutputImageType
itk::SubtractImageFilter< InputImageType, InputImageType, OutputImageType > ConvexFilterType