OTB  10.0.0
Orfeo Toolbox
otbImportGeoInformationImageFilter.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 otbImportGeoInformationImageFilter_h
22 #define otbImportGeoInformationImageFilter_h
23 
24 #include "itkUnaryFunctorImageFilter.h"
25 #include "itkCastImageFilter.h"
26 
27 namespace otb
28 {
45 template <class TImage, class TSourceImage>
46 class ITK_EXPORT ImportGeoInformationImageFilter : public itk::CastImageFilter<TImage, TImage>
47 {
48 public:
51  typedef itk::CastImageFilter<TImage, TImage> Superclass;
52  typedef itk::SmartPointer<Self> Pointer;
53  typedef itk::SmartPointer<const Self> ConstPointer;
54 
56  itkNewMacro(Self);
57 
60 
62  typedef TImage ImageType;
63  typedef typename ImageType::Pointer ImagePointerType;
64  typedef typename ImageType::ConstPointer ImageConstPointerType;
65  typedef TSourceImage SourceImageType;
67 
72  void SetSource(const TSourceImage* source);
73 
78  const TSourceImage* GetSource(void);
79 
80 protected:
83 
86  {
87  }
88 
90  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
91 
93  void GenerateInputRequestedRegion(void) override;
94 
96  void GenerateOutputInformation(void) override;
97 
98  void VerifyInputInformation() const override
99  {
100 
101  }
102 
103 private:
105  void operator=(const Self&) = delete;
106 };
107 } // End namespace otb
108 #ifndef OTB_MANUAL_INSTANTIATION
110 #endif
111 
112 #endif
Casts input pixels to output pixel type.
This filter is a helper class to import metadata from an existing image into a non-georeferenced imag...
itk::CastImageFilter< TImage, TImage > Superclass
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void SetSource(const TSourceImage *source)
void GenerateInputRequestedRegion(void) override
void operator=(const Self &)=delete
void GenerateOutputInformation(void) override
const TSourceImage * GetSource(void)
ImportGeoInformationImageFilter(const Self &)=delete
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.