OTB  9.0.0
Orfeo Toolbox
otbVectorImageTo3DScalarImageFilter.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 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 ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId) override;
82 
85 
88  {
89  }
90 
92  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
93 
94 private:
95  VectorImageTo3DScalarImageFilter(const Self&) = delete;
96  void operator=(const Self&) = delete;
97 };
98 } // End namespace otb
99 #ifndef OTB_MANUAL_INSTANTIATION
101 #endif
102 
103 #endif
otb::VectorImageTo3DScalarImageFilter::InputImageType
TInputImage InputImageType
Definition: otbVectorImageTo3DScalarImageFilter.h:57
otb::VectorImageTo3DScalarImageFilter::OutputImageRegionType
OutputImageType::RegionType OutputImageRegionType
Definition: otbVectorImageTo3DScalarImageFilter.h:68
otb::VectorImageTo3DScalarImageFilter::InputPixelType
InputImageType::PixelType InputPixelType
Definition: otbVectorImageTo3DScalarImageFilter.h:65
otb::VectorImageTo3DScalarImageFilter::Superclass
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
Definition: otbVectorImageTo3DScalarImageFilter.h:49
otb::VectorImageTo3DScalarImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbVectorImageTo3DScalarImageFilter.h:50
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::VectorImageTo3DScalarImageFilter::OutputImageIndexType
OutputImageType::IndexType OutputImageIndexType
Definition: otbVectorImageTo3DScalarImageFilter.h:69
otb::VectorImageTo3DScalarImageFilter::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: otbVectorImageTo3DScalarImageFilter.h:62
otb::VectorImageTo3DScalarImageFilter::OutputImageType
TOutputImage OutputImageType
Definition: otbVectorImageTo3DScalarImageFilter.h:66
otb::VectorImageTo3DScalarImageFilter::OutputImageSizeType
OutputImageType::SizeType OutputImageSizeType
Definition: otbVectorImageTo3DScalarImageFilter.h:70
otb::VectorImageTo3DScalarImageFilter::~VectorImageTo3DScalarImageFilter
~VectorImageTo3DScalarImageFilter() override
Definition: otbVectorImageTo3DScalarImageFilter.h:87
otb::VectorImageTo3DScalarImageFilter::Self
VectorImageTo3DScalarImageFilter Self
Definition: otbVectorImageTo3DScalarImageFilter.h:48
otbVectorImageTo3DScalarImageFilter.hxx
otb::VectorImageTo3DScalarImageFilter::InputImageSizeType
InputImageType::SizeType InputImageSizeType
Definition: otbVectorImageTo3DScalarImageFilter.h:63
otb::VectorImageTo3DScalarImageFilter::InputImageConstPointerType
InputImageType::ConstPointer InputImageConstPointerType
Definition: otbVectorImageTo3DScalarImageFilter.h:61
otb::VectorImageTo3DScalarImageFilter::InputImageIndexType
InputImageType::IndexType InputImageIndexType
Definition: otbVectorImageTo3DScalarImageFilter.h:64
otb::VectorImageTo3DScalarImageFilter::OutputImagePointerType
OutputImageType::Pointer OutputImagePointerType
Definition: otbVectorImageTo3DScalarImageFilter.h:67
otb::VectorImageTo3DScalarImageFilter
This filter convert a 2 Dimension VectorImage to a 3 Dimension scalar image.
Definition: otbVectorImageTo3DScalarImageFilter.h:44
otb::VectorImageTo3DScalarImageFilter::OutputPixelType
OutputImageType::PixelType OutputPixelType
Definition: otbVectorImageTo3DScalarImageFilter.h:71
otb::VectorImageTo3DScalarImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbVectorImageTo3DScalarImageFilter.h:51