ILMVHistogVw Interface

Data Types:

enum 
{ 
   RGB8 = 1035, 
   RGB24, 
   REDCHANNEL, 
   GREENCHANNEL, 
   BLUECHANNEL, 
   ALLCHANNELS 
}; 

Constants

Description

RGB8

Sets the type to RGB8.

RGB24

Sets the type to RGB24

REDCHANNEL

Use only the Red channel.

GREENCHANNEL

Use only the Green channel.

BLUECHANNEL

Use only the Blue channel.

ALLCHANNELS

Use the Master channel.

Interface Properties:

Type

Name

Description

VARIANT_BOOL

RGBMode

TRUE to use RGB data, and FALSE for BGR.

long

HistogramType

Describes the histogram type: which channel will have its histogram displayed. Possible values are:

RGB8,

REDCHANNEL,

GREENCHANNEL,

BLUECHANNEL,

ALLCHANNELS.

VARIANT_BOOL

DefaultRGBMode

Default RGB mode.

long

DefaultHistogramType

Default histogram type.

void

GetHistogramArray( long HistogramArray, long lFrameCount)

Retrieves the histogram for a frame.  The HistogramArray parameter should be a 255 element array of the type long.  You will pass the address of the first element in the array to the function.  The lFrameCount is filled with a value indicating the frame the histogram refers to.

Interface Methods:

HRESULT GetHistogramArray(long *HistogramArray, long *lFrameCount);

Parameters

HistogramArray The address of the first element in a 255 elements array of type long.
lFrameCount Pointer to a long variable that will be updated with a value indicating the frame the histogram refers to.

Description

Retrieves the histogram for a frame.

Returns

S_OK if successful, < 0 if an error occurred.

Common error codes:

Value

Meaning

E_POINTER

HistogramArray or lFrameCount are NULL

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.