AN1368
Figure A-1 shows a pixel which has RGB and it is
represented by a value of 21. The value, 21, in a look-up
table, indexes the 24-bit RGB value for that pixel.
Table A-1 represents the image using indexes instead
of RGB values from the palette table, as shown in
TABLE A-1:
CONTENTS OF AN EXAMPLE IMAGE USING INDEXES INSTEAD OF RGB VALUES
0
0
0
0
2
2
2
2
0
0
0
0
2
2
2
2
0
0
0
0
2
2
2
2
0
0
0
0
2
2
2
2
1
1
1
1
3
3
3
3
1
1
1
1
3
3
3
3
1
1
1
1
3
3
3
3
1
1
1
1
3
3
3
3
TABLE A-2:
PALETTE TABLE (24 BPP)
The other way to device a CLUT is to scale the RGB
Color Index
0
1
2
3
.
.
255
R
0
255
0
0
.
.
219
G
255
0
0
255
.
.
200
B
0
0
255
255
.
.
198
ranges to generate the 16-bit codes. However, since
the human eye is more sensitive to Green, we can give
Red and Blue 5 bits each, with 6 bits for Green, and
each cell in the image gets replaced by its index. This
may lead to edge artifacts in the image. Therefore, this
is not suitable for natural images but may be suitable
for artificially created images.
PIC24FJ256DA210 supports up to a 256-entry CLUT
with 16 BPP per entry.
Median Cut Algorithm
Note:
A color index refers to one row of CLUT.
It is an adaptive method that tries to put most bits where
A simple color changing type of animation process is
possible by changing the CLUT in the above method.
This is also known as palette animation.
In the above explanation, we saw a simple way to
cluster the image and device a CLUT, but clustering is
a slow process.
? 2011 Microchip Technology Inc.
colors are most clustered, so that they can be discrim-
inated. This is the most general algorithm used while
converting a RGB image to a CLUT-based color image,
such as PC applications (e.g., GIMP).
DS01368A-page 29
相关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