Image Type Conversion
Image Processing Toolbox™ supports binary, indexed, grayscale, and truecolor图像类型. In each image type, pixels are stored in different formats. For example, truecolor images represent a pixel as a triplet of red, green, and blue values, whereas grayscale images represent a pixel as a single intensity value.
Pixel values of the different image types can be stored in floating-point, signed and unsigned integers, or logicaldata types. Toolbox functions enable you to convert between the image types and data types.
Functions
Topics
- 工具箱中的图像类型
Image types determine how MATLAB®interprets data matrix elements as pixel intensity values. The toolbox supports many image types including binary, grayscale, truecolor, multispectral, and label images.
- Convert Between Image Types
某些图像处理操作仅支持图像类型的一个子集。万博1manbetx您可以在图像类型之间转换图像以适合操作。
- Convert Image Data Between Data Types
You can convert image data between data types using functions that automatically rescale and offset the original data.