opencv - image multiplication

后端 未结 2 980
伪装坚强ぢ
伪装坚强ぢ 2021-01-13 12:29

hi, i\'m trying to play a little bit with Mat class. I want to do a product element wise between two images, the c++/opencv port of MATLAB immultiply.

This is my cod

2条回答
  •  一整个雨季
    2021-01-13 13:25

    You are right, you should convert your matrices imgA, imgB to say CV32FC1 type. Since the max values in this matrices is 255, the maximum possible value is 65025. However, the maximum at imgA and imgB may not be in the same location, so 64009 is quite possible.

提交回复
热议问题