Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Image read and display android

I want to read an image from sdcard to Mat object and use's the snippet

            Rect roi=new Rect(10, 10, 128, 128);
            Mat sm=new Mat(m2,roi);
            Core.addWeighted(mRgba,0.5, m2,0.5,0, mRgba);

The image i read is of size 128*128 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??