0
我MATLAB代码是OpenCV的阈值或不等于操作
imTemp(imTemp ~= maxInd) = 0;
其中imTemp为100x100的双矩阵和maxInd == 1
我想过用CV ::门槛 http://docs.opencv.org/doc/tutorials/imgproc/threshold/threshold.html
但这对我没有任何帮助。
只有当src(x,y)> thresh ....做些什么
你能想到另一个可以实现这个逻辑的openCV函数吗?