openCV Gaussian blur/smoothing of 3D Matrix/Histogram

我的未来我决定 提交于 2019-11-28 10:18:19

问题


I have a (3D) Histogram which I like to apply Gaussian smoothing on:

cv::MatND Hist;

In the 1D and 2D cases I blur it via:

cv::GaussianBlur(Hist, Hist, cv::Size(1,3), 1.0);// 1D case
cv::GaussianBlur(Hist, Hist, cv::Size(3,3), 1.0);// 2D case

But I struggle to apply Gaussian blurring in the 3D case.

Has anyone got an idea how to attempt this?


回答1:


Try use separable kernels like shown here: http://www.programming-techniques.com/2013/03/gaussian-blurring-using-separable.html



来源:https://stackoverflow.com/questions/18020438/opencv-gaussian-blur-smoothing-of-3d-matrix-histogram

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!