MATLAB® images are arrays of numeric data on which you can perform analysis. For more information, see Working with Images in MATLAB Graphics.
Read, Write, and Modify Image
Convert Image Type
|Convert RGB colormap to grayscale colormap (depuis R2020b)|
|Return image data associated with movie frame|
|Convert RGB image to grayscale (depuis R2020b)|
|Convert image to movie frame|
|Convert image to double precision|
|Convert indexed image to RGB image|
|Convert RGB image or colormap to grayscale|
|Convert RGB image to indexed image|
|Default display range of image based on its class|
|Image Properties||Image appearance and behavior|
- 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.
- Displaying Image Data
This example shows how to read an RGB image into the workspace and display it.
- 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.
- Create and Compare Resizing Interpolation Kernels
This example shows how to define a kernel for image resizing and compare different interpolation kernels on a sample image.