I am loading an image in MATLAB and trying to resize it to certain size. This is my code:
img = imread(strcat(train_path,'/','aa.jpg' ));
[w h d] = size(img);
fprintf('%s %d %d %d \n', strcat(train_path,'/','aa.jpg' ), w, h ,d );
%image(img)
resize_img = imresize(img, [96,96]);
All works well except the imresize
function. The error is imresize
undefined.