OTB  9.0.0
Orfeo Toolbox
otbAttributesMapOpeningLabelMapFilter.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 otbAttributesMapOpeningLabelMapFilter_h
22 #define otbAttributesMapOpeningLabelMapFilter_h
23 
25 #include "itkAttributeOpeningLabelMapFilter.h"
26 
27 namespace otb
28 {
29 
43 template <class TImage>
45  : public itk::AttributeOpeningLabelMapFilter<TImage, typename otb::Functor::AttributesMapLabelObjectAccessor<typename TImage::LabelObjectType>>
46 {
47 public:
50  typedef itk::AttributeOpeningLabelMapFilter<TImage, Functor::AttributesMapLabelObjectAccessor<typename TImage::LabelObjectType>> Superclass;
51  typedef itk::SmartPointer<Self> Pointer;
52  typedef itk::SmartPointer<const Self> ConstPointer;
53 
54  typedef typename Superclass::AttributeAccessorType AttributeAccessorType;
55 
57  itkNewMacro(Self);
58 
60  itkTypeMacro(AttributesMapOpeningLabelMapFilter, itk::AttributeOpeningLabelMapFilter);
61 
63  void SetAttributeName(const char* name);
64 
66  const char* GetAttributeName();
67 
68  void SetAccessor(const AttributeAccessorType& accessor);
69 
70  AttributeAccessorType& GetAccessor();
71 
72  void GenerateData() override;
73 
74 
75 protected:
78 
81 
82  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
83 
84 
85 private:
87  void operator=(const Self&) = delete;
88 
90 
91 }; // end of class
92 
93 } // end namespace otb
94 
95 #ifndef OTB_MANUAL_INSTANTIATION
97 #endif
98 
99 #endif // otbAttributesMapOpeningLabelMapFilter_h
otbAttributesMapLabelObject.h
otb::AttributesMapOpeningLabelMapFilter::AttributeAccessorType
Superclass::AttributeAccessorType AttributeAccessorType
Definition: otbAttributesMapOpeningLabelMapFilter.h:54
otb::AttributesMapOpeningLabelMapFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbAttributesMapOpeningLabelMapFilter.h:51
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::AttributesMapOpeningLabelMapFilter::Superclass
itk::AttributeOpeningLabelMapFilter< TImage, Functor::AttributesMapLabelObjectAccessor< typename TImage::LabelObjectType > > Superclass
Definition: otbAttributesMapOpeningLabelMapFilter.h:50
otb::AttributesMapOpeningLabelMapFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbAttributesMapOpeningLabelMapFilter.h:52
otb::AttributesMapOpeningLabelMapFilter
Attributes opening for AttributesMapLabelObject.
Definition: otbAttributesMapOpeningLabelMapFilter.h:44
otbAttributesMapOpeningLabelMapFilter.hxx
otb::AttributesMapOpeningLabelMapFilter::m_Accessor
AttributeAccessorType m_Accessor
Definition: otbAttributesMapOpeningLabelMapFilter.h:89
otb::AttributesMapOpeningLabelMapFilter::Self
AttributesMapOpeningLabelMapFilter Self
Definition: otbAttributesMapOpeningLabelMapFilter.h:49