MATLAB File Help: cv.imdecode Index
cv.imdecode

Reads an image from a buffer in memory

img = cv.imdecode(buf)
img = cv.imdecode(buf, 'OptionName',optionValue, ...)

Input

Output

Options

The function reads an image from the specified buffer in the memory. If the buffer is too short or contains invalid data, an error is thrown.

See cv.imread for the list of supported formats and flags description.

Note

In the case of color images, the decoded images will have the channels stored in BGR order. If FlipChannels is true, the order is flipped to RGB.

See also