The type of image in MATLAB

Source: Internet
Author: User

the type of image in Matlab1. RGB image

RGB image is also known as the true color image, it is the use of R, G, b three components to identify a pixel color, r, G, b respectively represents red, green, blue 3 different colors, through the three primary colors can be synthesized out of any color.

So for a color image of dimension nxm, in MATLAB, a nxmx3 array of multidimensional data is stored, where the elements in the array define the red and green of each pixel in the image. Blue color value.


RGB images do not use a palette, and the color of each pixel is determined by the combination of red, green, and blue color components stored in the corresponding location.

Red, green, blue components occupy 8 bits, so the image can theoretically have 2^24= 16 777 216 colors, because this color accuracy can reproduce the image has true color, it is called RGB image is true color image.


2. Binary Images

  Each pixel will take one of two discrete values (0 or 1), and two values represent the state "on" or "off", respectively.

Binary images are stored using an array class of UNIT8 or double-precision types.




3. Grayscale Image

Grayscale images are usually described by an array of unit8, unit16, or double-precision types, which is essentially a data matrix.

The data in the matrix represents 0-255 gray level, 0 for black, and 255 for white.


4. Indexed Images

An indexed image is an image that takes a pixel value directly as a subscript in the RGB palette.



5. Multi-Frame images

Multi-frame image is a multi-image or frame image file, also known as multi-page image or image sequence, it is mainly used for the time or set of scenes to operate, such as magnetic resonance image slices or movie frames.


Each individual image becomes a frame. If an array contains multiple frames, then these images are associated in four dimensions.

In a multi-frame image array, each image must have the same size and color component.

In a multi-frame image, each image also uses the same palette.


The type of image in MATLAB

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.