Академический Документы
Профессиональный Документы
Культура Документы
After editing.
Output images.
Code part:
I = imread('C:\Users\Jrgen\Desktop\Kool\Digitaalne
pildittlus\Images\kairi.jpg');
I = rgb2gray(I);
I = imresize(I, [256, 256]);
I = double(I);
nearest = imresize(I, 2, 'nearest');
bilinear = imresize(I, 2, 'bilinear');
bicubic = imresize(I, 2, 'bicubic');
% class_of_I = class(I);
% [x y] = meshgrid(1:sy,1:sx);
% [xi yi] = meshgrid(1:0.5:sy,1:0.5:sx);
% class_of_I
% size(x)
% size(y)
% size(double(I))
% size(xi)
% size(yi)
% img = cast(interp2(x,y,double(I),xi,yi,'spline'),class_of_I);
imshow(I);