62 views (last 30 days)
I =imread('C:\Users\SAMA CENTER\Desktop\girl.jpg');
J = imresize(I,[200 250]);
X = rgb2gray(I);
What's wrong with this code?? there is some wrong with the floor function what is it ???
Chandra Kurniawan on 10 Mar 2012
The error message sounds you accessed X(213,1) while the size of X is 212x320
X is a gray image generated from command : X = rgb2gray(I);
so, the original image I has 212x320 dimension.