Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Resize Image

I want to resize my image into half but the output is wrong as it is just showing a part of the image; it doesn't resize the whole image into half. The code used is below-

Mat src;
src = imread( "cameraman.tif" );
Mat img_resize;
resize(src,img_resize,Size(src.rows/2,src.cols/2)) ;

Original Image and Output-Image