I have been trying to achieve something which should pretty trivial and is trivial in Matlab.
I want to simply achieve something such as:
cv::Ma
For java there is no operator overloading, but the Mat object provides the functionality with a convertTo method.
Mat dst= new Mat(src.rows(),src.cols(),src.type()); src.convertTo(dst,-1,scale,offset);
Doc on this method is here