class providing and encapsulating GDAL GeoTIFF I/O functions
More...
#include <GeoTIFFIO.hpp>
class providing and encapsulating GDAL GeoTIFF I/O functions
- Author
- Niklas Dettmer ndett.nosp@m.mer@.nosp@m.uos.d.nosp@m.e
Definition at line 40 of file GeoTIFFIO.hpp.
◆ GeoTIFFIO() [1/2]
lvr2::GeoTIFFIO::GeoTIFFIO |
( |
std::string |
filename, |
|
|
int |
cols, |
|
|
int |
rows, |
|
|
int |
bands |
|
) |
| |
- Parameters
-
filename | filename of output GeoTIFF file |
cols | number of columns / width of the image |
rows | number of rows / length of the image |
bands | number of bands |
Definition at line 14 of file GeoTIFFIO.cpp.
◆ GeoTIFFIO() [2/2]
lvr2::GeoTIFFIO::GeoTIFFIO |
( |
std::string |
filename | ) |
|
◆ ~GeoTIFFIO()
lvr2::GeoTIFFIO::~GeoTIFFIO |
( |
| ) |
|
◆ getNumBands()
int lvr2::GeoTIFFIO::getNumBands |
( |
| ) |
|
- Returns
- number of bands of dataset
Definition at line 79 of file GeoTIFFIO.cpp.
◆ getRasterHeight()
int lvr2::GeoTIFFIO::getRasterHeight |
( |
| ) |
|
- Returns
- height of dataset in number of pixels
Definition at line 66 of file GeoTIFFIO.cpp.
◆ getRasterWidth()
int lvr2::GeoTIFFIO::getRasterWidth |
( |
| ) |
|
- Returns
- width of dataset in number of pixels
Definition at line 53 of file GeoTIFFIO.cpp.
◆ readBand()
cv::Mat * lvr2::GeoTIFFIO::readBand |
( |
int |
band_index | ) |
|
- Parameters
-
band_index | index of the band to be read |
- Returns
- indexed band of the dataset as cv::Mat *
Definition at line 88 of file GeoTIFFIO.cpp.
◆ writeBand()
int lvr2::GeoTIFFIO::writeBand |
( |
cv::Mat * |
mat, |
|
|
int |
band |
|
) |
| |
Writing given band into open GeoTIFF file.
- Parameters
-
mat | cv::Mat containing the band data |
band | number of band to be written |
- Returns
- standard C++ return value
Definition at line 27 of file GeoTIFFIO.cpp.
◆ m_bands
int lvr2::GeoTIFFIO::m_bands |
|
private |
◆ m_cols
int lvr2::GeoTIFFIO::m_cols |
|
private |
◆ m_gtif_dataset
GDALDataset* lvr2::GeoTIFFIO::m_gtif_dataset |
|
private |
◆ m_gtif_driver
GDALDriver* lvr2::GeoTIFFIO::m_gtif_driver |
|
private |
◆ m_rows
int lvr2::GeoTIFFIO::m_rows |
|
private |
The documentation for this class was generated from the following files: