|
using | size_t = std::size_t |
|
|
| 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.
|
|
◆ GDALImage()
GDALImage::GDALImage |
( |
std::string | filename, |
|
|
int | band = 1, |
|
|
int | cacheSizeInGB = 0, |
|
|
int | useMmap = 1 ) |
Constructor.
Create a GDAL image object
- Parameters
-
filename | a std::string with the raster image file name |
band | the band number |
cacheSizeInGB | read buffer size in GigaBytes |
useMmap | whether to use memory map |
◆ 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
-
dArray | pointer for array in device memory |
h_offset | Down/Height offset |
w_offset | Across/Width offset |
h_tile | Down/Height tile size |
w_tile | Across/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:
- /home/runner/work/isce3/isce3/cxx/isce3/matchtemplate/pycuampcor/GDALImage.h
- /home/runner/work/isce3/isce3/cxx/isce3/matchtemplate/pycuampcor/GDALImage.cpp
1.13.2.