GDAL
|
GDAL pansharpening related entry points and definitions. More...
Go to the source code of this file.
Classes | |
struct | GDALPansharpenOptions |
Pansharpening options. More... | |
class | GDALPansharpenOperation |
Pansharpening operation class. More... | |
Typedefs | |
typedef void * | GDALPansharpenOperationH |
Enumerations | |
enum | GDALPansharpenAlg { GDAL_PSH_WEIGHTED_BROVEY } |
Pansharpening algorithms. More... | |
Functions | |
GDALPansharpenOptions * | GDALCreatePansharpenOptions (void) |
Create pansharpening options. More... | |
void | GDALDestroyPansharpenOptions (GDALPansharpenOptions *) |
Destroy pansharpening options. More... | |
GDALPansharpenOptions * | GDALClonePansharpenOptions (const GDALPansharpenOptions *psOptions) |
Clone pansharpening options. More... | |
GDALPansharpenOperationH | GDALCreatePansharpenOperation (const GDALPansharpenOptions *) |
Instantiate a pansharpening operation. More... | |
void | GDALDestroyPansharpenOperation (GDALPansharpenOperationH) |
Destroy a pansharpening operation. More... | |
CPLErr | GDALPansharpenProcessRegion (GDALPansharpenOperationH hOperation, int nXOff, int nYOff, int nXSize, int nYSize, void *pDataBuf, GDALDataType eBufDataType) |
Executes a pansharpening operation on a rectangular region of the resulting dataset. More... | |
GDAL pansharpening related entry points and definitions.
typedef void* GDALPansharpenOperationH |
Pansharpening operation handle.
enum GDALPansharpenAlg |
GDALPansharpenOptions* GDALClonePansharpenOptions | ( | const GDALPansharpenOptions * | psOptions | ) |
Clone pansharpening options.
psOptions | a pansharpening option structure allocated with GDALCreatePansharpenOptions() |
GDALPansharpenOperationH GDALCreatePansharpenOperation | ( | const GDALPansharpenOptions * | psOptions | ) |
Instantiate a pansharpening operation.
The passed options are validated.
psOptions | a pansharpening option structure allocated with GDALCreatePansharpenOptions(). It is duplicated by this function. |
GDALPansharpenOptions* GDALCreatePansharpenOptions | ( | void | ) |
Create pansharpening options.
void GDALDestroyPansharpenOperation | ( | GDALPansharpenOperationH | hOperation | ) |
Destroy a pansharpening operation.
hOperation | a valid pansharpening operation. |
void GDALDestroyPansharpenOptions | ( | GDALPansharpenOptions * | psOptions | ) |
Destroy pansharpening options.
psOptions | a pansharpening option structure allocated with GDALCreatePansharpenOptions() |
CPLErr GDALPansharpenProcessRegion | ( | GDALPansharpenOperationH | hOperation, |
int | nXOff, | ||
int | nYOff, | ||
int | nXSize, | ||
int | nYSize, | ||
void * | pDataBuf, | ||
GDALDataType | eBufDataType | ||
) |
Executes a pansharpening operation on a rectangular region of the resulting dataset.
The window is expressed with respect to the dimensions of the panchromatic band.
Spectral bands are upsampled and merged with the panchromatic band according to the select algorithm and options.
hOperation | a valid pansharpening operation. |
nXOff | pixel offset. |
nYOff | pixel offset. |
nXSize | width of the pansharpened region to compute. |
nYSize | height of the pansharpened region to compute. |
pDataBuf | output buffer. Must be nXSize * nYSize * GDALGetDataTypeSizeBytes(eBufDataType) * psOptions->nOutPansharpenedBands large. It begins with all values of the first output band, followed by values of the second output band, etc... |
eBufDataType | data type of the output buffer |