GDAL
|
Pansharpening operation class. More...
#include <gdalpansharpen.h>
Public Member Functions | |
GDALPansharpenOperation () | |
Pansharpening operation constructor. More... | |
~GDALPansharpenOperation () | |
Pansharpening operation destructor. | |
CPLErr | Initialize (const GDALPansharpenOptions *psOptions) |
Initialize the pansharpening operation. More... | |
CPLErr | ProcessRegion (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... | |
GDALPansharpenOptions * | GetOptions () |
Return options. More... | |
Pansharpening operation class.
|
default |
Pansharpening operation constructor.
The object is ready to be used after Initialize() has been called.
GDALPansharpenOptions * GDALPansharpenOperation::GetOptions | ( | ) |
Return options.
CPLErr GDALPansharpenOperation::Initialize | ( | const GDALPansharpenOptions * | psOptionsIn | ) |
Initialize the pansharpening operation.
psOptionsIn | pansharpening options. Must not be NULL. |
CPLErr GDALPansharpenOperation::ProcessRegion | ( | 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.
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 |