AN1368
APPENDIX A:
COLOR LOOK-UP
TABLE (CLUT)
bytes, one for the RGB of each primary color. The other
colors are represented as a combination of the RGB
values. Because each value is in the range of 0-255, it
A Recap of Basic Concepts
Before understanding the concept of a CLUT, image
representations and their data types should be
understood.
A digital image consists of pixels, also known as Pels.
This is a binary image (‘ 0 ’ or ‘ 1 ’) and is represented by
a simple on/off of a pixel. It is also called a
monochrome image, and for a 640x480 screen size,
the image size is (640x480/8) 37.5 Kbytes.
Image resolution refers to the number of pixels in an
image. Aspect ratio is the ratio of the column/row. In the
above example of 640x480, the aspect ratio is 4:3. This
above aspect ratio has been found to appear as a
natural image.
8-Bit Gray Level Image
An 8-bit image is an image where each pixel has an 8-bit
value (0-255) represented by a byte, which is also known
as Grayscale. Thus, the image can be a 2-dimensional
array of values, ranging between (0-255), which is also
referred to as a bit map.
For Example: An 8-bit Grayscale of VGA resolution
would be the size of 300 Kbytes.
Image Data Type for Color Images
The common data type for graphics and image file
formats is 24-bit color or 8-bit color. In a 24-bit color
image data type, each pixel is represented by three
provides a total of 16,777,216 possible colors; however,
this requires a huge storage memory (16 Mbytes).
For example, for a resolution of 640x480, a 24-bit color
image would require 900 Kbytes of memory (without
any compression).
If memory space is a concern (which is generally the
case), by quantizing the 24-bit color information,
reasonably accurate 8-bit color information can be
achieved. This also means that we have only
256 possible colors.
8-Bit Color Image Files
Image files use a special concept to store color
information in a CLUT. The image is not represented by
colors but a set of bytes. These bytes form the index to
a table, which has 3-byte values that specify the color
for a pixel. This means the user has to represent the
image by choosing the colors that best represent the
image and does not exceed the 256 color
combinations, as they are indexed by 8-bit values.
One important savings of 8-bit representation over 24-bit
representation is in storage space, which is 300 Kbytes
vs. 900 Kbytes (with no compression applied).
Figure A-1 can help in understanding the CLUT, which
is also known as a palette table.
FIGURE A-1:
COLOR LOOK-UP TABLE (CLUT)
CLUT
0
Color 0
1 Pixel
1
Value = 21
2
210 200
9
3
R
G
B
.
.
DS01368A-page 28
21
Color 21
Color Value
? 2011 Microchip Technology Inc.
相关PDF资料
AC164130 BOARD DAUGHT PICTL PLUS ECAN/LIN
AC164131 BOARD DAUGHTER USB PICTAIL PLUS
AC164132 BOARD DAUGHTER PICTAIL ETHERNET
AC164141 BOARD SMART CARD / SIM CARD
AC164142 BOARD DAUGHTER PWR LINE MODEM
AC164144 LLC PICTAIL PLUS DAUGHTR BRD
AC164145 BOARD DAUGHTER PWR LINE MODEM
AC243005-1 KIT MEMORY SERIAL SUPERFLASH 1
相关代理商/技术参数
AC164128 功能描述:子卡和OEM板 dsPICDEM Motor Cntrl PICtail Plus RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164129 功能描述:子卡和OEM板 Audio PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164130 功能描述:网络开发工具 ECAN/LIN PICtail Plus Daughter Board RoHS:否 制造商:Rabbit Semiconductor 产品:Development Kits 类型:Ethernet to Wi-Fi Bridges 工具用于评估:RCM6600W 数据速率:20 Mbps, 40 Mbps 接口类型:802.11 b/g, Ethernet 工作电源电压:3.3 V
AC164130-2 功能描述:子卡和OEM板 CAN/LIN PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164131 功能描述:子卡和OEM板 USB PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164132 功能描述:以太网开发工具 100Mbps Ethernet PICtail Plus DB RoHS:否 制造商:Micrel 产品:Evaluation Boards 类型:Ethernet Transceivers 工具用于评估:KSZ8873RLL 接口类型:RMII 工作电源电压:
AC164133 功能描述:电源管理IC开发工具 dsPIC BuckBoost PICtail Daughtr Brd RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
AC164133 制造商:Microchip Technology Inc 功能描述:Buck/Boost Converter PICtail P