Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Images

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.

Functions

imshow Display image
image Display image from array
imagesc Display image with scaled colors
imread Read image from graphics file
imwrite Write image to graphics file
imfinfo Information about graphics file
imformats Manage image file format registry
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
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 Control image appearance and behavior

Topics

Working with Images in MATLAB Graphics

This section describes different data and image types and gives details about how to read, write, work with, and display graphics images.

Image Types

Types of images supported by MATLAB graphics

8-Bit and 16-Bit Images

Reduce memory requirements by storing images as 8-bit or 16-bit unsigned integers.

Read, Write, and Query Image Files

Work with standard image file formats in MATLAB, such as reading and writing image files.

Displaying Graphics Images

Display graphics file images and control the size and aspect ratio.

The Image Object and Its Properties

Like all graphics objects, the image object has a number of properties you can set to fine-tune its appearance on the screen.

Printing Images

Print images in proper proportions by preserving the aspect ratio.

Convert Image Graphic or Data Type

Converting between data types changes the interpretation of the image data.

Was this topic helpful?