OTB  10.0.0
Orfeo Toolbox
otbSOMActivationBuilder.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2024 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);
72 
73 protected:
76 
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
This class takes a self organizing map and an input vector image, and produce a map counting the numb...
InputMapType::Pointer InputMapPointerType
SOMActivationBuilder(const Self &)=delete
void operator=(const Self &)=delete
ListSamplePointerType m_ListSample
ListSampleType::Pointer ListSamplePointerType
itk::ImageToImageFilter< TInputMap, TOutputImage > Superclass
itk::SmartPointer< const Self > ConstPointer
void GenerateData(void) override
~SOMActivationBuilder() override
itkGetObjectMacro(ListSample, ListSampleType)
itk::SmartPointer< Self > Pointer
OutputImageType::Pointer OutputImagePointerType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.