# Revision history [back]

there are no builtin 'operators' for this in java, you'll have to use Core.multiply , like:

Mat A = ...;
Mat B = new Mat();
Scalar s = new Scalar(13);
Core.multiply(A, s, B);


note, since B will get saturated on overflow, you probably need to convert A to a larger type, like CV_32F