I have this code:
im = imread('Car.tif');
a = 0.50;
T = imtransform(im,maketform('affine', [1 0 0; a 1 0; 0 0 1] ));
xi = 0:.25:10;
B = interp1 (im, T , xi,'nearest');
subplot (2,2,1), imshow(im);
subplot (2,2,2), imshow(B);
title('Nearest Interpolation');
And error are:
Error using interp1>parseValuesV Values V must be of type double or single.
Error in interp1 [V, orig_size_v] = parseValuesV(varargin{2});
Error in Asgt3q5 B = interp1 (im, T , xi,'nearest');
How can I solve this?