OTB  10.0.0
Orfeo Toolbox
otbImageCommons.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 otbImageCommons_h
22 #define otbImageCommons_h
23 
24 #include "otbImageMetadata.h"
26 #include "OTBImageBaseExport.h"
27 
28 namespace otb
29 {
30 
31 class OTBImageBase_EXPORT ImageCommons
32 {
33 public:
34 
36 
38 
40 
42 
43  // boilerplate code...
44 
46  std::string GetProjectionRef(void) const;
47 
48  void SetProjectionRef(const std::string& wkt);
49 
51  std::string GetGCPProjection(void) const;
52 
53  unsigned int GetGCPCount(void) const;
54 
55  // Removed non-const getter on GCPs
56  //~ GCP& GetGCPs(unsigned int GCPnum);
57 
58  const GCP& GetGCPs(unsigned int GCPnum) const;
59 
60  std::string GetGCPId(unsigned int GCPnum) const;
61  std::string GetGCPInfo(unsigned int GCPnum) const;
62  double GetGCPRow(unsigned int GCPnum) const;
63  double GetGCPCol(unsigned int GCPnum) const;
64  double GetGCPX(unsigned int GCPnum) const;
65  double GetGCPY(unsigned int GCPnum) const;
66  double GetGCPZ(unsigned int GCPnum) const;
67 
69  bool HasSensorGeometry() const;
70 
73 };
74 
75 } // end namespace otb
76 
77 #endif
This GCP class is used to manage the GCP parameters in OTB.
double GetGCPRow(unsigned int GCPnum) const
const ImageMetadata & GetImageMetadata() const
bool HasSensorGeometry() const
ImageMetadata m_Imd
double GetGCPY(unsigned int GCPnum) const
std::string GetGCPId(unsigned int GCPnum) const
std::string GetGCPProjection(void) const
double GetGCPCol(unsigned int GCPnum) const
void SetProjectionRef(const std::string &wkt)
double GetGCPZ(unsigned int GCPnum) const
unsigned int GetGCPCount(void) const
double GetGCPX(unsigned int GCPnum) const
ImageMetadata & GetImageMetadata()
std::string GetGCPInfo(unsigned int GCPnum) const
void SetBandImageMetadata(ImageMetadata::ImageMetadataBandsType imd)
const GCP & GetGCPs(unsigned int GCPnum) const
void SetImageMetadata(ImageMetadata imd)
std::string GetProjectionRef(void) const
Generic class containing image metadata used in OTB.
std::vector< ImageMetadataBase > ImageMetadataBandsType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.