OTB  9.0.0
Orfeo Toolbox
otbSOMActivationBuilder.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 otbSOMActivationBuilder_h
22 #define otbSOMActivationBuilder_h
23 
24 #include "itkImageToImageFilter.h"
25 
26 namespace otb
27 {
40 template <class TListSample, class TInputMap, class TOutputImage>
41 class ITK_EXPORT SOMActivationBuilder : public itk::ImageToImageFilter<TInputMap, TOutputImage>
42 {
43 public:
46  typedef itk::ImageToImageFilter<TInputMap, TOutputImage> Superclass;
47  typedef itk::SmartPointer<Self> Pointer;
48  typedef itk::SmartPointer<const Self> ConstPointer;
49 
51  itkNewMacro(Self);
52 
54  itkTypeMacro(SOMActivationBuilder, ImageToImageFilter);
55 
57  typedef TListSample ListSampleType;
58  typedef TOutputImage OutputImageType;
59  typedef TInputMap InputMapType;
60 
61  typedef typename ListSampleType::Pointer ListSamplePointerType;
62  typedef typename OutputImageType::Pointer OutputImagePointerType;
63  typedef typename InputMapType::Pointer InputMapPointerType;
64 
66  itkStaticConstMacro(ImageDimension, unsigned int, InputMapType::ImageDimension);
67 
69  itkSetObjectMacro(ListSample, ListSampleType);
70  itkGetObjectMacro(ListSample, ListSampleType);
72 
73 protected:
76 
78  ~SOMActivationBuilder() override;
79 
81  void GenerateData(void) override;
82 
84  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
85 
86 private:
87  SOMActivationBuilder(const Self&) = delete;
88  void operator=(const Self&) = delete;
91 };
92 } // end namespace otb
93 
94 #ifndef OTB_MANUAL_INSTANTIATION
96 #endif
97 
98 #endif
otb::SOMActivationBuilder::InputMapPointerType
InputMapType::Pointer InputMapPointerType
Definition: otbSOMActivationBuilder.h:63
otb::SOMActivationBuilder::InputMapType
TInputMap InputMapType
Definition: otbSOMActivationBuilder.h:59
otb::SOMActivationBuilder::m_ListSample
ListSamplePointerType m_ListSample
Definition: otbSOMActivationBuilder.h:90
otb::SOMActivationBuilder
This class takes a self organizing map and an input vector image, and produce a map counting the numb...
Definition: otbSOMActivationBuilder.h:41
otbSOMActivationBuilder.hxx
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::SOMActivationBuilder::Superclass
itk::ImageToImageFilter< TInputMap, TOutputImage > Superclass
Definition: otbSOMActivationBuilder.h:46
otb::SOMActivationBuilder::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbSOMActivationBuilder.h:48
otb::SOMActivationBuilder::ListSampleType
TListSample ListSampleType
Definition: otbSOMActivationBuilder.h:54
otb::SOMActivationBuilder::Self
SOMActivationBuilder Self
Definition: otbSOMActivationBuilder.h:45
otb::SOMActivationBuilder::ListSamplePointerType
ListSampleType::Pointer ListSamplePointerType
Definition: otbSOMActivationBuilder.h:61
otb::SOMActivationBuilder::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbSOMActivationBuilder.h:47
otb::SOMActivationBuilder::OutputImagePointerType
OutputImageType::Pointer OutputImagePointerType
Definition: otbSOMActivationBuilder.h:62
otb::SOMActivationBuilder::OutputImageType
TOutputImage OutputImageType
Definition: otbSOMActivationBuilder.h:58