Public Member Functions | Private Attributes | List of all members
lvr2::GeoTIFFIO Class Reference

class providing and encapsulating GDAL GeoTIFF I/O functions More...

#include <GeoTIFFIO.hpp>

Public Member Functions

 GeoTIFFIO (std::string filename)
 
 GeoTIFFIO (std::string filename, int cols, int rows, int bands)
 
int getNumBands ()
 
int getRasterHeight ()
 
int getRasterWidth ()
 
cv::Mat * readBand (int band_index)
 
int writeBand (cv::Mat *mat, int band)
 Writing given band into open GeoTIFF file. More...
 
 ~GeoTIFFIO ()
 

Private Attributes

int m_bands
 
int m_cols
 
GDALDataset * m_gtif_dataset
 
GDALDriver * m_gtif_driver
 
int m_rows
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GeoTIFFIO() [1/2]

lvr2::GeoTIFFIO::GeoTIFFIO ( std::string  filename,
int  cols,
int  rows,
int  bands 
)
Parameters
filenamefilename of output GeoTIFF file
colsnumber of columns / width of the image
rowsnumber of rows / length of the image
bandsnumber of bands

Definition at line 14 of file GeoTIFFIO.cpp.

◆ GeoTIFFIO() [2/2]

lvr2::GeoTIFFIO::GeoTIFFIO ( std::string  filename)
Parameters
filename

Definition at line 21 of file GeoTIFFIO.cpp.

◆ ~GeoTIFFIO()

lvr2::GeoTIFFIO::~GeoTIFFIO ( )

Definition at line 111 of file GeoTIFFIO.cpp.

Member Function Documentation

◆ 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_indexindex 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
matcv::Mat containing the band data
bandnumber of band to be written
Returns
standard C++ return value

Definition at line 27 of file GeoTIFFIO.cpp.

Member Data Documentation

◆ m_bands

int lvr2::GeoTIFFIO::m_bands
private

Definition at line 90 of file GeoTIFFIO.hpp.

◆ m_cols

int lvr2::GeoTIFFIO::m_cols
private

Definition at line 90 of file GeoTIFFIO.hpp.

◆ m_gtif_dataset

GDALDataset* lvr2::GeoTIFFIO::m_gtif_dataset
private

Definition at line 88 of file GeoTIFFIO.hpp.

◆ m_gtif_driver

GDALDriver* lvr2::GeoTIFFIO::m_gtif_driver
private

Definition at line 89 of file GeoTIFFIO.hpp.

◆ m_rows

int lvr2::GeoTIFFIO::m_rows
private

Definition at line 90 of file GeoTIFFIO.hpp.


The documentation for this class was generated from the following files:


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:27