Main Content

Images

读、写、显示和修改图像

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

Functions

expand all

imshow Display image
image Display image from array
imagesc Display image with scaled colors
imread Read image from graphics file
imresize Resize image
imtile Combine multiple image frames into one rectangular tiled image
imwrite Write image to graphics file
imfinfo Information about graphics file
imformats Manage image file format registry
cmap2gray Convert RGB colormap to grayscale colormap
frame2im Return image data associated with movie frame
im2gray Convert RGB image to grayscale
im2frame Convert image to movie frame
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
getrangefromclass Default display range of image based on its class
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

Properties

Image Properties Image appearance and behavior

Topics