We cannot use operator* unlike C++.
It seems cv.multiply is only for mat * mat (element-wise).
How can I multiply Mat by scalar?
1 | initial version |
We cannot use operator* unlike C++.
It seems cv.multiply is only for mat * mat (element-wise).
How can I multiply Mat by scalar?
We cannot use operator* unlike C++.
It seems cv.multiply is only for mat * mat (element-wise).
How can I multiply Mat by scalar?
Currently, I use cv.multiply(mat, cv.ones(h, w, cv.CV_8UC1), 255)
We cannot use operator* unlike C++.
It seems cv.multiply is only for mat * mat
(element-wise).(element-wise).
How can I multiply Mat by scalar?
Currently, I use cv.multiply(mat, cv.ones(h, w, cv.CV_8UC1), 255)
We cannot use operator* unlike C++.
It seems cv.multiply is only for mat * mat (element-wise)
.
How can I multiply Mat Mat
by scalar?scalar
?
Currently, I use cv.multiply(mat, cv.ones(h, w, cv.CV_8UC1), 255)