【发布时间】:2015-03-31 06:33:21
【问题描述】:
我的matlab代码是
imTemp(imTemp ~= maxInd) = 0;
其中 imTemp 是 100x100 双矩阵且 maxInd == 1
我考虑过使用 cv::threshold http://docs.opencv.org/doc/tutorials/imgproc/threshold/threshold.html
但这并没有真正帮助我。
只有当 src(x,y)>thresh.... 做某事
你能想到另一个可以实现这个逻辑的openCV函数吗?
【问题讨论】: