Please enable JavaScript to view this site.

uEye .NET Manual 4.97

Class

uEye.Image

Accessible

Camera.Image.GetHistogram

Syntax

uEye.Image.GetHistogram(int s32MemID, uEye.Defines.ColorMode colorMode, out uint[] u32HistoMem)

Description

Computes the histogram of the submitted image. The method GetHistogram supports the following color formats:

uEye.Defines.ColorMode.SensorRaw8

uEye.Defines.ColorMode.Mono8

uEye.Defines.ColorMode.RGBY8Packed

uEye.Defines.ColorMode.BGRY8Packed

uEye.Defines.ColorMode.RGBA8Packed

uEye.Defines.ColorMode.BGRA8Packed

uEye.Defines.ColorMode.BGR565Packed

uEye.Defines.ColorMode.BGR5Packed

uEye.Defines.ColorMode.RGB8Packed

uEye.Defines.ColorMode.BGR8Packed

Parameter

s32MemID

Image memory ID

colorMode

Color mode of the image with the s32MemId memory ID

For a list of all available color formats and the associated input parameters, see the PixelFormat class or the Appendix "Color and memory formats" in the uEye manual.

u32HistoMem

Returns an array:

The array must be allocated in such a way that it can accommodate 3*256 values for color formats and in raw Bayer mode. In monochrome mode, the array must be able to accommodate 1*256 values.