Function

vImageLookupTable_Planar8toPlanarF

Uses a lookup table to transform an image in Planar8 format to an image in PlanarF format.

Declaration

vImage_Error vImageLookupTable_Planar8toPlanarF(const vImage_Buffer *src, const vImage_Buffer *dest, const Pixel_F table[256], vImage_Flags flags);

Parameters

src

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

dest

A pointer to a vImage buffer data structure. You're responsible for filling out the height, width, and rowBytes fields of this structure, and for allocating a data buffer of the appropriate size. On return, the data buffer this structure points to contains the destination image data. When you no longer need the data buffer, you must deallocate the memory

table

A lookup table that contains 256 values.

flags

Reserved for future use; pass 0.

Return Value

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

Discussion

For each pixel, the 8-bit value from the source Planar8 image is used as an index to get a floating-point value from the table. This value is used as the corresponding pixel in the PlanarF result image.

See Also

Transforming with a Lookup Table

vImageLookupTable_PlanarFtoPlanar8

Uses a lookup table to transform an image in PlanarF format to an image in Planar8 format.

vImageLookupTable_Planar8toPlanar24

Uses a lookup table to transform an image in Planar8 format to an image in Planar24 format.

vImageLookupTable_Planar8toPlanar16

Uses a lookup table to transform an image in Planar8 format to an image in Planar16 format.

vImageLookupTable_Planar8toPlanar48

Uses a lookup table to transform an image in Planar8 format to an image in Planar48 format.

vImageLookupTable_Planar8toPlanar96

Uses a lookup table to transform an image in Planar8 format to an image in Planar96 format.

vImageLookupTable_Planar8toPlanar128

Uses a lookup table to transform an image in Planar8 format to an image in Planar128 format.

vImageLookupTable_Planar16

Uses a lookup table to remap values in a Planar16 format image.

vImageLookupTable_8to64U

Uses a lookup table to remap 8-bit unsigned integers in a source image to 64-bit unsigned values.

vImageInterpolatedLookupTable_PlanarF

Uses a lookup table to transform an image in PlanarF format.