Image read and display android
I want to read an image from sdcard to Mat object and use it...here's the snippet
inputFrame.copyTo(mRgba);
Rect roi=new Rect(10, 10, 128, 128);
Mat sm=new Mat(m2,roi);
sm=Highgui.imread("/mnt/sdcard/coke.bmp");
Core.addWeighted(mRgba,0.5, m2,0.5,0, mRgba);
The image i read is of size 128*128 ...so i defined a submat with the exact ROI range... I mounted the sd-card image and also included the file in it.... Yet the uotput doesnt show the imaeg... The Mat m2 is empty
I also wanna know if the image can be of larger size than the Mat to which i read??If so will it be rescaled automatically??