Function

vImageHistogramCalculation_Planar8

Calculates a histogram for a Planar8 image.

Declaration

vImage_Error vImageHistogramCalculation_Planar8(const vImage_Buffer *src, vImagePixelCount *histogram, vImage_Flags flags);

Parameters

src

A pointer to a vImage buffer structure that contains the source image.

histogram

A pointer to a histogram. On return, this array will contain the histogram for the source image. The histogram will be an array with 256 elements.

flags

The options to use. Set the kvImageDoNotTile flag if you plan to perform your own tiling or use multithreading.

Return Value

kvImageNoError; otherwise, one of the error codes described in Data Types and Constants.

See Also

Calculating a Histogram

vImageHistogramCalculation_ARGBFFFF

Calculates histograms for each channel of an ARGBFFFF image.

vImageHistogramCalculation_ARGB8888

Calculates histograms for each channel of an ARGB8888 image.

vImageHistogramCalculation_PlanarF

Calculates the histogram a PlanarF image.