GeoTIFFIO.hpp
Go to the documentation of this file.
1 
27 #ifndef GEOTIFFIO_HPP
28 #define GEOTIFFIO_HPP
29 
30 #include <gdal_priv.h>
31 #include <opencv2/opencv.hpp>
32 #include <string>
33 
34 namespace lvr2
35 {
40 class GeoTIFFIO
41 {
42 public:
49  GeoTIFFIO(std::string filename, int cols, int rows, int bands);
50 
54  GeoTIFFIO(std::string filename);
55 
62  int writeBand(cv::Mat *mat, int band);
63 
67  int getRasterWidth();
68 
72  int getRasterHeight();
73 
77  int getNumBands();
78 
83  cv::Mat *readBand(int band_index);
84 
85  ~GeoTIFFIO();
86 
87 private:
88  GDALDataset *m_gtif_dataset;
89  GDALDriver *m_gtif_driver;
91 };
92 }
93 
94 
95 #endif //GEOTIFFIO_HPP
int getRasterWidth()
Definition: GeoTIFFIO.cpp:53
class providing and encapsulating GDAL GeoTIFF I/O functions
Definition: GeoTIFFIO.hpp:40
GDALDataset * m_gtif_dataset
Definition: GeoTIFFIO.hpp:88
GeoTIFFIO(std::string filename, int cols, int rows, int bands)
Definition: GeoTIFFIO.cpp:14
GDALDriver * m_gtif_driver
Definition: GeoTIFFIO.hpp:89
int writeBand(cv::Mat *mat, int band)
Writing given band into open GeoTIFF file.
Definition: GeoTIFFIO.cpp:27
int getRasterHeight()
Definition: GeoTIFFIO.cpp:66
cv::Mat * readBand(int band_index)
Definition: GeoTIFFIO.cpp:88


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:06