GetStatisticsInfo method (Main Control)
Builder Syntax |
int GetStatisticsInfo(unsigned uChannel, unsigned uStart, unsigned uEnd, double &dStdDev, double &dMean, int &nMedian, int &nMax, int &nMin, unsigned &uPixelCnt, unsigned &uTotalPixelCnt, double &dPercent); |
Delphi Syntax |
Function GetStatisticsInfo(uChannel: L_UINT; uStart: L_UINT; uEnd: L_UINT; var dStdDev: L_DOUBLE; var dMean: L_DOUBLE; var nMedian: L_INT; var nMax: L_INT; var nMin: L_INT; var uPixelCnt: L_UINT; var uTotalPixelCnt: L_UINT; var dPercent: L_DOUBLE): L_INT; |
Overview |
Refer to Image Analysis |
Remarks
(Raster Pro and above toolkits) Calculates statistical information about the current bitmap and updates certain parameters with this information.
The uStart and uEnd parameters designate the range of colors that will be taken in consideration for producing the results. Only the values between uStart and uEnd are used for the calculation of the results. The range of each one depends on the bits per pixel of the bitmap: in the case of 8 bits per component (RGB), the range is between 0 and 255; for 16 bits, the range is 0 through 65535; and for 12 bits, the range is 0 through 4095.
Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.
This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.
See Also
Elements: |
|
Topics: |