This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Read, write, display, and modify images

MATLAB® images are arrays of numeric data on which you can perform analysis. For more information, see Working with Images in MATLAB Graphics.


Display Image

imshow Display image
image Display image from array
imagesc Display image with scaled colors

Read and Write Image

imread Read image from graphics file
imwrite Write image to graphics file
imfinfo Information about graphics file
imformats Manage image file format registry

Convert Image Type

frame2im Return image data associated with movie frame
im2frame Convert image to movie frame
im2java Convert image to Java image
im2double Convert image to double precision
ind2rgb Convert indexed image to RGB image
rgb2gray Convert RGB image or colormap to grayscale
rgb2ind Convert RGB image to indexed image

Modify Image Colors

imapprox Approximate indexed image by reducing number of colors
dither Convert image, increasing apparent color resolution by dithering
cmpermute Rearrange colors in colormap
cmunique Eliminate duplicate colors in colormap; convert grayscale or truecolor image to indexed image


Image Properties Control image appearance and behavior
Was this topic helpful?