GetCustomHistogramArray

GetCustomHistogramArray 1:

Gets a custom histogram array.

Syntax

Definition:

METHOD GetCustomHistogramArray : HRESULT
VAR_INPUT
    nHistogramSize : Reference To ULINT;
    pDestBuffer    : PVOID;
    nBins          : Reference To UDINT;
    fLowerBound    : Reference To LREAL;
    fUpperBound    : Reference To LREAL;
END_VAR

GetCustomHistogramArray 2: Inputs

Name

Type

Description

nHistogramSize

Reference To ULINT

Maximum buffer size (in) and actual buffer size (out).

pDestBuffer

PVOID

Pointer to the destination buffer.

nBins

Reference To UDINT

Desired number of bins or 0 to keep the default for the corresponding image format (in) and default number of bins (out).

fLowerBound

Reference To LREAL

Lower (inclusive) boundary of the 0-th histogram bin (in), or receive the default if fLowerBound AND fUpperBound are set to 0 (out).

fUpperBound

Reference To LREAL

Upper (exclusive) boundary of the last histogram bin nBins-1 (in), or receive the default if fLowerBound AND fUpperBound are set to 0 (out).

GetCustomHistogramArray 3: Return value

HRESULT