isce3 0.25.0
Loading...
Searching...
No Matches
isce3::matchtemplate::pycuampcor::GDALImage Class Reference

Public Types

using size_t = std::size_t
 

Public Member Functions

 GDALImage (std::string fn, int band=1, int cacheSizeInGB=0, int useMmap=1)
 Constructor.
 
 ~GDALImage ()
 destructor
 
void * getmemPtr ()
 
int getHeight ()
 
int getWidth ()
 
int getPixelSize ()
 
bool isComplex ()
 
void loadToDevice (void *dArray, size_t h_offset, size_t w_offset, size_t h_tile, size_t w_tile)
 Load a tile of data h_tile x w_tile from CPU to GPU.
 

Constructor & Destructor Documentation

◆ GDALImage()

GDALImage::GDALImage ( std::string filename,
int band = 1,
int cacheSizeInGB = 0,
int useMmap = 1 )

Constructor.

Create a GDAL image object

Parameters
filenamea std::string with the raster image file name
bandthe band number
cacheSizeInGBread buffer size in GigaBytes
useMmapwhether to use memory map

Member Function Documentation

◆ loadToDevice()

void GDALImage::loadToDevice ( void * dArray,
size_t h_offset,
size_t w_offset,
size_t h_tile,
size_t w_tile )

Load a tile of data h_tile x w_tile from CPU to GPU.

Parameters
dArraypointer for array in device memory
h_offsetDown/Height offset
w_offsetAcross/Width offset
h_tileDown/Height tile size
w_tileAcross/Width tile size
Note
Need to use size_t type to pass the parameters to cudaMemcpy2D correctly

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

Generated for ISCE3.0 by doxygen 1.13.2.