4

fpga图像处理(laplacian算子)

 1 year ago
source link: https://blog.csdn.net/feixiaoxing/article/details/128943103
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图像处理(laplacian算子)

嵌入式-老费 已于 2023-02-08 21:19:02 修改 44

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

        之前谈到边缘提取的时候,共谈到了三种算子计算。一种是prewitt算子,一种是sobel算子,另外一种就是laplacian算子。鉴于sobel算子已经讲过了,prewitt算子和sobel算子又非常接近,所以今天讲一下剩下来的laplacian算子。

43cd839f75334e64b4e110519ae7bf45.png

1、再次复用sobel算子的流程

         和sobel算子、均值滤波一样,laplacian算子也需要9个数据参与运算,所以这里同样需要复用sobel算子的流程。即每次弹出3个数据,共弹出9个数据。

2、[0 -1 0; -1 4 -1; 0 -1 0]算子

        这个算子是比较容易的一个算子,主要就是将当前点周围的四个元素进行求和运算,结果和当前点像素值的4倍进行比较。两者之差,重新赋值给当前点,作为像素值使用。



newCodeMoreWhite.png

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK