3

fpga图像处理(灰度化)

 1 year ago
source link: https://blog.csdn.net/feixiaoxing/article/details/128888314
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

fpga图像处理(灰度化)

嵌入式-老费 于 2023-02-05 10:20:56 发布 215

【声明:版权所有,欢迎转载,请勿用于商业用途。 联系信箱:feixiaoxing @163.com】

        前面我们谈到过灰度图像的处理,不过当时是使用python实现的。这当中也用verilog编写过灰度代码,不过是在testbench里面实现的,如果需要把这个代码运行在fpga上面,那一般都是用YCbCr的方法提取的,公式如下所示

        但是整个灰度计算的流程也不是一蹴而就的,而是通过几个时钟一步一步去完成的。计算后,如果没有其他问题的化,一般会看到这样的结果,

2015159ad5f34e3c8b2b13a1f418132c.png

1、第一个时钟,分别计算r、g、b的乘法数值


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK