原始碼地址:github.com/cctv1005s/n…
說明
通過讀取圖片畫素,使用卷積處理圖片,從而達到銳化,高斯模糊等的效果,使用Nodejs處理,在此寫出一個小demo,僅供參考。
原理

效果
原始圖片

銳化

高斯模糊

梯度Prewitt

梯度Laplacian

使用不同的卷積核能夠使圖片呈現不同的效果。
原始碼地址:github.com/cctv1005s/n…
通過讀取圖片畫素,使用卷積處理圖片,從而達到銳化,高斯模糊等的效果,使用Nodejs處理,在此寫出一個小demo,僅供參考。
使用不同的卷積核能夠使圖片呈現不同的效果。