OTB  9.0.0
Orfeo Toolbox
otbVectorImageToASImageAdaptor.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 
22 #ifndef otbVectorImageToASImageAdaptor_h
23 #define otbVectorImageToASImageAdaptor_h
24 
25 #include "itkImageAdaptor.h"
27 
28 namespace otb
29 {
30 
40 template <class TImage>
42  : public itk::ImageAdaptor<TImage, otb::Accessor::VectorImageToASPixelAccessor<typename TImage::PixelType::ValueType>>
43 {
44 public:
47  typedef itk::ImageAdaptor<TImage, otb::Accessor::VectorImageToASPixelAccessor<typename TImage::PixelType::ValueType>> Superclass;
48  typedef itk::SmartPointer<Self> Pointer;
49  typedef itk::SmartPointer<const Self> ConstPointer;
50 
52  itkNewMacro(Self);
53 
55  itkTypeMacro(VectorImageToASImageAdaptor, ImageAdaptor);
56 
59  typedef typename Superclass::PixelContainer PixelContainer;
60  typedef typename Superclass::PixelContainerPointer PixelContainerPointer;
61  typedef typename Superclass::PixelContainerConstPointer PixelContainerConstPointer;
62 
63 protected:
65  {
66  }
68  {
69  }
70 
71 private:
72  VectorImageToASImageAdaptor(const Self&) = delete;
73  void operator=(const Self&) = delete;
74 };
75 
76 } // end namespace otb
77 
78 #endif
otb::VectorImageToASImageAdaptor::Superclass
itk::ImageAdaptor< TImage, otb::Accessor::VectorImageToASPixelAccessor< typename TImage::PixelType::ValueType > > Superclass
Definition: otbVectorImageToASImageAdaptor.h:47
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::VectorImageToASImageAdaptor::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbVectorImageToASImageAdaptor.h:48
otb::VectorImageToASImageAdaptor::PixelContainerPointer
Superclass::PixelContainerPointer PixelContainerPointer
Definition: otbVectorImageToASImageAdaptor.h:60
otb::VectorImageToASImageAdaptor::VectorImageToASImageAdaptor
VectorImageToASImageAdaptor()
Definition: otbVectorImageToASImageAdaptor.h:64
otb::VectorImageToASImageAdaptor
Presents an image of pixel type Vector as being and image of FixelArray<unsigned short,...
Definition: otbVectorImageToASImageAdaptor.h:41
otbVectorImageToASPixelAccessor.h
otb::VectorImageToASImageAdaptor::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbVectorImageToASImageAdaptor.h:49
otb::VectorImageToASImageAdaptor::PixelContainerConstPointer
Superclass::PixelContainerConstPointer PixelContainerConstPointer
Definition: otbVectorImageToASImageAdaptor.h:61
otb::VectorImageToASImageAdaptor::Self
VectorImageToASImageAdaptor Self
Definition: otbVectorImageToASImageAdaptor.h:46
otb::VectorImageToASImageAdaptor::PixelContainer
Superclass::PixelContainer PixelContainer
Definition: otbVectorImageToASImageAdaptor.h:55
otb::VectorImageToASImageAdaptor::~VectorImageToASImageAdaptor
~VectorImageToASImageAdaptor() override
Definition: otbVectorImageToASImageAdaptor.h:67