Ask Your Question

Revision history [back]

Use convertTo method.

Mat x(10,12,CV_8UC1),y;
x.convertTo(y,CV_16S,128);   // y =128*x;