记录一下自己处理图像中的一些小知识点!
1、均值滤波去椒盐噪声。
2、opencv滑动条调阈值
这种滑动条方式还是挺简单的!
int threshold = 50;
namedWindow("Trackbars", (620, 200));
createTrackbar("ThresHold:", "Trackbars", &threshold, 500);
while (1)
{
Canny(g_gray, g_thres, threshold, 2 * threshold, 3);
imshow("Trackbars", g_thres);
waitKey(1);
}