Functions > Reading and Writing Files > Image Properties
Image Properties
READ_RED("file"), READ_GREEN("file"), READ_BLUE("file")—Returns an array containing only the red, green, or blue component from a color image file, respectively.
READ_HLS("file")—Returns an array containing a hue, lightness, and saturation representation of an image file.
WRITE_HLS("file", M)—Writes the image matrix M to a 16-million-color HLS image file.
READ_HSV("file")—Returns an array containing a hue, saturation, and value representation of an image file.
WRITE_HSV("file", M)—Writes the image matrix M to a 16-million-color HSV image file.
READ_HLS_SAT("file")—Extracts the saturation component from an HLS color image file.
READ_HSV_SAT("file")—Extracts the saturation component from an HSV color image file.
READ_HUE("file")—Extracts the hue component from an HLS or HSV color image file.
READ_LIGHT("file")—Extracts the light component from an HLS color image file.
READ_VALUE("file")—Extracts the value component from an HSV color image file.
Arguments
"file" is a string containing the file name or the full pathname and the file name. Recognized image formats are BMP, GIF, JPG, PCX, or TGA.
M is an image matrix.
Additional Information
HSV or HLS images are stored in packed format.
Was this helpful?