OTB  10.0.0
Orfeo Toolbox
otbVectorImageToIntensityImageFilter.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 otbVectorImageToIntensityImageFilter_h
22 #define otbVectorImageToIntensityImageFilter_h
23 
24 #include "itkImageToImageFilter.h"
25 
26 namespace otb
27 {
51 template <class TInputImage, class TOutputImage>
52 class ITK_EXPORT VectorImageToIntensityImageFilter : public itk::ImageToImageFilter<TInputImage, TOutputImage>
53 {
54 public:
57  typedef itk::ImageToImageFilter<TInputImage, TOutputImage> Superclass;
58  typedef itk::SmartPointer<Self> Pointer;
59  typedef itk::SmartPointer<const Self> ConstPointer;
60 
62  itkNewMacro(Self);
63 
65  itkTypeMacro(VectorImageToIntensityImageFilter, itk::ImageToImageFilter);
66 
68  typedef TInputImage InputImageType;
69  typedef typename InputImageType::ConstPointer InputImageConstPointerType;
70  typedef typename InputImageType::RegionType InputImageRegionType;
71  typedef typename InputImageType::PixelType InputPixelType;
72  typedef TOutputImage OutputImageType;
73  typedef typename OutputImageType::Pointer OutputImagePointerType;
74  typedef typename OutputImageType::RegionType OutputImageRegionType;
75  typedef typename OutputImageType::PixelType OutputPixelType;
76 
77 protected:
80 
83  {
84  }
85 
87  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
88 
99  void DynamicThreadedGenerateData(const OutputImageRegionType& outputRegionForThread) override;
100 
101 private:
103  void operator=(const Self&) = delete;
104 };
105 } // End namespace otb
106 #ifndef OTB_MANUAL_INSTANTIATION
108 #endif
109 
110 #endif
This filter implements the computation of the mean of the spectral values of each pixel.
void operator=(const Self &)=delete
VectorImageToIntensityImageFilter(const Self &)=delete
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void PrintSelf(std::ostream &os, itk::Indent indent) const override
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.