Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In general you can use OpenCV filters also on vectors. In this case GaussianBlur works fine:

cv::Mat hist,hist_smoothed;
...
calcHist(&grayImg, 1, 0, cv::Mat(), hist, 1, &histSize, &histRange, uniform, accumulate);
GaussianBlur(hist, hist_smoothed, Size(smooth_size, smooth_size), 0, 0, BORDER_CONSTANT);