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函數嗎?