How to multiply cv.Mat by scalar in JS?
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)