Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Multiply Mat and Scalar not working...help me

I coding by android studio using opencv.

I tried mutiply scalar with Mat but not working.

Mat A = new Mat();
Mat B = new Mat();
Mat C = new Mat();
Mat D = new Mat();
Scalar alpha = new Scalar(5);

I take this:

image description

and i multiply C with "alpha":

Core.multiply(C,alpha,D);

i wana D become :

image description

but D become :

image description

please help me..