Opencv multiply scalar and matrix

后端 未结 5 2218
北海茫月
北海茫月 2021-02-19 06:11

I have been trying to achieve something which should pretty trivial and is trivial in Matlab.

I want to simply achieve something such as:

cv::Ma         


        
5条回答
  •  深忆病人
    2021-02-19 07:03

    Mat A = //data;//source Matrix
    Mat B;//destination Matrix
    Scalar alpha = new Scalar(5)//factor
    Core.multiply(A,alpha,b);
    

提交回复
热议问题