OTB  9.0.0
Orfeo Toolbox
otbImportGeoInformationImageFilter.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 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 
59  itkTypeMacro(ImportGeoInformationImageFilter, CastImageFilter);
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 
103  void VerifyInputInformation() override
104  {
105  }
106 
107 private:
108  ImportGeoInformationImageFilter(const Self&) = delete;
109  void operator=(const Self&) = delete;
110 };
111 } // End namespace otb
112 #ifndef OTB_MANUAL_INSTANTIATION
114 #endif
115 
116 #endif
otb::ImportGeoInformationImageFilter::SourceImageType
TSourceImage SourceImageType
Definition: otbImportGeoInformationImageFilter.h:65
otb::ImportGeoInformationImageFilter::~ImportGeoInformationImageFilter
~ImportGeoInformationImageFilter() override
Definition: otbImportGeoInformationImageFilter.h:85
otbImportGeoInformationImageFilter.hxx
otb::ImportGeoInformationImageFilter::ImagePointerType
ImageType::Pointer ImagePointerType
Definition: otbImportGeoInformationImageFilter.h:63
otb::ImportGeoInformationImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbImportGeoInformationImageFilter.h:52
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::ImportGeoInformationImageFilter
This filter is a helper class to import metadata from an existing image into a non-georeferenced imag...
Definition: otbImportGeoInformationImageFilter.h:46
otb::ImportGeoInformationImageFilter::ImageConstPointerType
ImageType::ConstPointer ImageConstPointerType
Definition: otbImportGeoInformationImageFilter.h:64
otb::ImportGeoInformationImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbImportGeoInformationImageFilter.h:53
otb::ImportGeoInformationImageFilter::Superclass
itk::CastImageFilter< TImage, TImage > Superclass
Definition: otbImportGeoInformationImageFilter.h:51
otb::ImportGeoInformationImageFilter::VerifyInputInformation
void VerifyInputInformation() override
Definition: otbImportGeoInformationImageFilter.h:103
otb::ImportGeoInformationImageFilter::ImageType
TImage ImageType
Definition: otbImportGeoInformationImageFilter.h:59
otb::ImportGeoInformationImageFilter::Self
ImportGeoInformationImageFilter Self
Definition: otbImportGeoInformationImageFilter.h:50
otb::ImportGeoInformationImageFilter::SourceImagePointerType
SourceImageType SourceImagePointerType
Definition: otbImportGeoInformationImageFilter.h:66