【发布时间】:2015-05-25 00:01:25
【问题描述】:
我想在 OpenCV C++ 中实现这个 MATLAB 语句:
bwImgLabeled(bwImgLabeled > 0) = 1;
据我了解,从那时起 OpenCV 文档,http://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html?highlight=threshold#threshold, 我需要做的:
cv::threshold(dst, dst, 0, 1, CV_THRESH_BINARY);
我说的对吗?
【问题讨论】:
标签: c++ image matlab opencv image-processing