当前位置:网站首页>图像处理:RGB565转RGB888
图像处理:RGB565转RGB888
2022-07-24 10:17:00 【刘颜儿】
一、需求
在起前面这篇文章中,ov7725摄像头通过VGA/HDMI显示RGB565格式的图像 完成了用摄像头采集图像后,通过HDMI或者VGA显示图像,现在需要添加一个图像处理模块,对摄像头采集的图像进行处理
但是由于ov7725摄像头使用的是GRB565格式的图像,但是在图像处理中使用的是RGB888的图像格式,于是就需要将GRB565转为RGB888
二、什么是GRB565、RGB888
RGB888:红绿蓝各占8位,共24位信息
GRB565:red[15:11]、green[10:5]、blue[4:0] 这几位分别取8位红绿蓝的高位
那GRB565比RGB888少了8位数据,少的这几位都是3中颜色的地位数据,即用来表示背景颜色的数据被丢失了
三、如何实现
如下,用了RGB565的地位补全信息
.per_img_red ({
vga_rgb[15:11], vga_rgb[13:11]}),
.per_img_green({
vga_rgb[10:5], vga_rgb[6:5]}),
.per_img_blue ({
vga_rgb[4:0], vga_rgb[2:0]}),
边栏推荐
- 【LeeCode】获取2个字符串的最长公共子串
- 【二叉树先导】树的概念和表示方法
- OpenGL drawing simple triangles
- Server load and CPU performance tuning
- [STM32 learning] (7) use of serial port 2 (usart2)
- [STM32 learning] (8) stm32f1 general timer configuration
- The optimal time to buy and sell stocks includes the freezing period (leetcode-309)
- The best time to buy and sell stocks includes handling charges (leetcode-714)
- The concept and representation of a tree
- Deployment and analysis of coredns
猜你喜欢

String__

zoj-Swordfish-2022-5-6

NiO knowledge points

Curse of knowledge

Where is the bitbucket clone address

What did zoneawareloadbalancer of ribbon and its parent class do?
![[STM32 learning] (15) STM32 realizes DHT11 temperature and humidity acquisition and display](/img/f2/6fcd4b2e747b4ceb52a52eda0c1af4.png)
[STM32 learning] (15) STM32 realizes DHT11 temperature and humidity acquisition and display

2022, enterprise unified process platform design and integration specifications refer to thubierv0.1

Add a love power logo to your website
![[STM32 learning] (11) STM32 Mifare_ Use of one (S50) m1s50 (read, write, key modification, control bit interpretation)](/img/fd/4290525914b5146fe0eb653517fef9.png)
[STM32 learning] (11) STM32 Mifare_ Use of one (S50) m1s50 (read, write, key modification, control bit interpretation)
随机推荐
Is CITIC Securities a safe and reliable securities firm? How to open an account?
String sort
[STM32 learning] (5) press the key to control the flow light (interrupt Implementation)
zoj-Swordfish-2022-5-6
MySQL 数据库 JDBC编程
Homologous policy solutions
JS 84*148=b6a8 how many decimal places can you make both sides equal
Arduino- use millis() to do two (or more) things at the same time
Synchronized scope "concurrent programming"
Dynamic programming -- a collection of stock problems
In depth analysis of common cross end technology stacks of app
Google Earth engine - QA in Landsat 5 toa dataset_ Pixel and QA_ Radsat band
Knapsack problem of dynamic programming -- three lectures on knapsack (01 knapsack, complete knapsack, multiple knapsack)
关联规则--2022年7月10日
Binary original code, inverse code, complement code
Dynamic planning: robbing families and houses
Dr. water 3
Home raiding III (leetcode-337)
Tag the specified commit and submit the tag
Association Rules -- July 10, 2022