|
GDAL
|
Public Member Functions | |
| virtual CPLErr | XMLInit (CPLXMLNode *, const char *) |
| virtual CPLXMLNode * | SerializeToXML (const char *pszVRTPath) |
| virtual CPLErr | RasterIO (int nXOff, int nYOff, int nXSize, int nYSize, void *pData, int nBufXSize, int nBufYSize, GDALDataType eBufType, GSpacing nPixelSpace, GSpacing nLineSpace, GDALRasterIOExtraArg *psExtraArg) |
| virtual double | GetMinimum (int nXSize, int nYSize, int *pbSuccess) |
| virtual double | GetMaximum (int nXSize, int nYSize, int *pbSuccess) |
| virtual CPLErr | ComputeRasterMinMax (int nXSize, int nYSize, int bApproxOK, double *adfMinMax) |
| Compute the min/max values for a band. | |
| virtual CPLErr | ComputeStatistics (int nXSize, int nYSize, int bApproxOK, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev, GDALProgressFunc pfnProgress, void *pProgressData) |
| virtual CPLErr | GetHistogram (int nXSize, int nYSize, double dfMin, double dfMax, int nBuckets, GUIntBig *panHistogram, int bIncludeOutOfRange, int bApproxOK, GDALProgressFunc pfnProgress, void *pProgressData) |
Public Attributes | |
| VRTImageReadFunc | pfnReadFunc |
| void * | pCBData |
| GDALDataType | eType |
| float | fNoDataValue |
| CPLErr VRTFuncSource::ComputeRasterMinMax | ( | int | nXSize, |
| int | nYSize, | ||
| int | bApproxOK, | ||
| double * | adfMinMax | ||
| ) | [virtual] |
Compute the min/max values for a band.
If approximate is OK, then the band's GetMinimum()/GetMaximum() will be trusted. If it doesn't work, a subsample of blocks will be read to get an approximate min/max. If the band has a nodata value it will be excluded from the minimum and maximum.
If bApprox is FALSE, then all pixels will be read and used to compute an exact range.
This method is the same as the C function GDALComputeRasterMinMax().
| bApproxOK | TRUE if an approximate (faster) answer is OK, otherwise FALSE. |
| adfMinMax | the array in which the minimum (adfMinMax[0]) and the maximum (adfMinMax[1]) are returned. |
Implements VRTSource.
1.7.3.