Converts a Planar8 image to a PlanarF image.
- iOS 5.0+
- macOS 10.3+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A pointer to a vImage buffer structure that contains the source image whose data you want to convert.
A pointer to a vImage buffer data structure. You're responsible for filling out the
rowfields 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.
The maximum pixel value for the destination image.
The minimum pixel value for the destination image.
The options to use when performing the operation. If you plan to perform your own tiling or use multithreading, pass
Image Do Not Tile
This function transforms a Planar8 image to a PlanarF image, using a
min value and a
max value to specify the range of values for the PlanarF image. The function maps each source pixel value(which can be in the range of 0 to 255 inclusive) linearly into the range
max, using the following mapping (where
i is the old pixel value):
The two buffers must have the same number of rows and the same number of columns.