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
lvr2::GeoTIFFIO::getRasterHeight
int getRasterHeight()
Definition: GeoTIFFIO.cpp:66
lvr2::GeoTIFFIO::m_cols
int m_cols
Definition: GeoTIFFIO.hpp:90
lvr2::GeoTIFFIO::m_rows
int m_rows
Definition: GeoTIFFIO.hpp:90
lvr2::GeoTIFFIO
class providing and encapsulating GDAL GeoTIFF I/O functions
Definition: GeoTIFFIO.hpp:40
lvr2::GeoTIFFIO::~GeoTIFFIO
~GeoTIFFIO()
Definition: GeoTIFFIO.cpp:111
lvr2::GeoTIFFIO::m_gtif_driver
GDALDriver * m_gtif_driver
Definition: GeoTIFFIO.hpp:89
lvr2::GeoTIFFIO::getRasterWidth
int getRasterWidth()
Definition: GeoTIFFIO.cpp:53
scripts.normalize_multiple.filename
filename
Definition: normalize_multiple.py:60
lvr2::GeoTIFFIO::readBand
cv::Mat * readBand(int band_index)
Definition: GeoTIFFIO.cpp:88
lvr2::GeoTIFFIO::GeoTIFFIO
GeoTIFFIO(std::string filename, int cols, int rows, int bands)
Definition: GeoTIFFIO.cpp:14
lvr2::GeoTIFFIO::getNumBands
int getNumBands()
Definition: GeoTIFFIO.cpp:79
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::GeoTIFFIO::writeBand
int writeBand(cv::Mat *mat, int band)
Writing given band into open GeoTIFF file.
Definition: GeoTIFFIO.cpp:27
lvr2::GeoTIFFIO::m_bands
int m_bands
Definition: GeoTIFFIO.hpp:90
lvr2::GeoTIFFIO::m_gtif_dataset
GDALDataset * m_gtif_dataset
Definition: GeoTIFFIO.hpp: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 Wed Mar 2 2022 00:37:23