OTB  10.0.0
Orfeo Toolbox
otbVectorImageTo3DScalarImageFilter.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 otbVectorImageTo3DScalarImageFilter_h
22 #define otbVectorImageTo3DScalarImageFilter_h
23 
24 #include "itkImageToImageFilter.h"
25 
26 namespace otb
27 {
43 template <class TInputImage, class TOutputImage>
44 class ITK_EXPORT VectorImageTo3DScalarImageFilter : public itk::ImageToImageFilter<TInputImage, TOutputImage>
45 {
46 public:
49  typedef itk::ImageToImageFilter<TInputImage, TOutputImage> Superclass;
50  typedef itk::SmartPointer<Self> Pointer;
51  typedef itk::SmartPointer<const Self> ConstPointer;
52 
54  itkNewMacro(Self);
55 
57  itkTypeMacro(VectorImageTo3DScalarImageFilter, ImageToImageFilter);
58 
60  typedef TInputImage InputImageType;
61  typedef typename InputImageType::ConstPointer InputImageConstPointerType;
62  typedef typename InputImageType::RegionType InputImageRegionType;
63  typedef typename InputImageType::SizeType InputImageSizeType;
64  typedef typename InputImageType::IndexType InputImageIndexType;
65  typedef typename InputImageType::PixelType InputPixelType;
66  typedef TOutputImage OutputImageType;
67  typedef typename OutputImageType::Pointer OutputImagePointerType;
68  typedef typename OutputImageType::RegionType OutputImageRegionType;
69  typedef typename OutputImageType::IndexType OutputImageIndexType;
70  typedef typename OutputImageType::SizeType OutputImageSizeType;
71  typedef typename OutputImageType::PixelType OutputPixelType;
72 
73 protected:
75  void GenerateOutputInformation(void) override;
76 
78  void GenerateInputRequestedRegion(void) override;
79 
81  void DynamicThreadedGenerateData(const OutputImageRegionType& outputRegionForThread) override;
82 
85 
88  {
89  }
90 
92  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
93 
94 private:
96  void operator=(const Self&) = delete;
97 };
98 } // End namespace otb
99 #ifndef OTB_MANUAL_INSTANTIATION
101 #endif
102 
103 #endif
This filter convert a 2 Dimension VectorImage to a 3 Dimension scalar image.
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void GenerateInputRequestedRegion(void) override
VectorImageTo3DScalarImageFilter(const Self &)=delete
void GenerateOutputInformation(void) override
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void operator=(const Self &)=delete
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.