OTB  9.0.0
Orfeo Toolbox
otbVectorImageToIntensityImageFilter.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 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 ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId) override;
100 
101 private:
102  VectorImageToIntensityImageFilter(const Self&) = delete;
103  void operator=(const Self&) = delete;
104 };
105 } // End namespace otb
106 #ifndef OTB_MANUAL_INSTANTIATION
108 #endif
109 
110 #endif
otb::VectorImageToIntensityImageFilter
This filter implements the computation of the mean of the spectral values of each pixel.
Definition: otbVectorImageToIntensityImageFilter.h:52
otb::VectorImageToIntensityImageFilter::InputImageType
TInputImage InputImageType
Definition: otbVectorImageToIntensityImageFilter.h:65
otb::VectorImageToIntensityImageFilter::OutputPixelType
OutputImageType::PixelType OutputPixelType
Definition: otbVectorImageToIntensityImageFilter.h:75
otb::VectorImageToIntensityImageFilter::Self
VectorImageToIntensityImageFilter Self
Definition: otbVectorImageToIntensityImageFilter.h:56
otb::VectorImageToIntensityImageFilter::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: otbVectorImageToIntensityImageFilter.h:70
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otbVectorImageToIntensityImageFilter.hxx
otb::VectorImageToIntensityImageFilter::~VectorImageToIntensityImageFilter
~VectorImageToIntensityImageFilter() override
Definition: otbVectorImageToIntensityImageFilter.h:82
otb::VectorImageToIntensityImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbVectorImageToIntensityImageFilter.h:59
otb::VectorImageToIntensityImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbVectorImageToIntensityImageFilter.h:58
otb::VectorImageToIntensityImageFilter::InputPixelType
InputImageType::PixelType InputPixelType
Definition: otbVectorImageToIntensityImageFilter.h:71
otb::VectorImageToIntensityImageFilter::OutputImagePointerType
OutputImageType::Pointer OutputImagePointerType
Definition: otbVectorImageToIntensityImageFilter.h:73
otb::VectorImageToIntensityImageFilter::OutputImageType
TOutputImage OutputImageType
Definition: otbVectorImageToIntensityImageFilter.h:72
otb::VectorImageToIntensityImageFilter::OutputImageRegionType
OutputImageType::RegionType OutputImageRegionType
Definition: otbVectorImageToIntensityImageFilter.h:74
otb::VectorImageToIntensityImageFilter::Superclass
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
Definition: otbVectorImageToIntensityImageFilter.h:57
otb::VectorImageToIntensityImageFilter::InputImageConstPointerType
InputImageType::ConstPointer InputImageConstPointerType
Definition: otbVectorImageToIntensityImageFilter.h:69