How to downsize image in x and y direction?
6 views (last 30 days)
I have image with size 484x680 and i want to downsize with fector 2. final size should be 241x340.
i have tried it but it downsized in only one direction
img = imread('img')
new_img2 = downsample(img, 2);
I have also uplod the result of imshow(new_img2) which is img2