【发布时间】:2014-09-23 07:51:40
【问题描述】:
我不需要阈值图像。我要门槛。我在 OpenCV 中找到了这个。
cv::threshold( orig_img, thres_img, 0, 255, CV_THRESH_BINARY+CV_THRESH_OTSU );
EmguCv 中是否有等价物。提前致谢。
PS。我需要将此阈值用于精明的边缘检测器
【问题讨论】:
-
不知道 emgu,但是 cv::threshold 的 返回值 是上述情况下的 otsu 阈值。 (所以你可能仍然需要调用 cv::threshold,即使你扔掉了 thresh_img)
-
谢谢!我通过 CvInvoke 调用了阈值函数,它可以工作