OTB  9.0.0
Orfeo Toolbox
otbImageCommons.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 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 
35  void SetImageMetadata(ImageMetadata imd);
36 
37  void SetBandImageMetadata(ImageMetadata::ImageMetadataBandsType imd);
38 
39  const ImageMetadata & GetImageMetadata() const;
40 
41  ImageMetadata & GetImageMetadata();
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
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::ImageCommons
Definition: otbImageCommons.h:31
otb::ImageCommons::m_Imd
ImageMetadata m_Imd
Definition: otbImageCommons.h:72
otbImageMetadataInterfaceBase.h
otb::ImageMetadata
Generic class containing image metadata used in OTB.
Definition: otbImageMetadata.h:270
otbImageMetadata.h
otb::GCP
This GCP class is used to manage the GCP parameters in OTB.
Definition: otbGeometryMetadata.h:43
otb::ImageMetadata::ImageMetadataBandsType
std::vector< ImageMetadataBase > ImageMetadataBandsType
Definition: otbImageMetadata.h:277