I need to have the Mathlab codes for the listed problems SP
I need to have the Mathlab codes for the listed problems !
SPECTACULAR YOSEMITE QUANG TUAN LUONG AND UNIVERSE STUART BOOTHSolution
1)
Answer:
I = imread(\'yosemite.jpg\'); % To Read image
imshow(I); % To dispaly image
2)
Answer:
[x1,y1,z1] = size(A); %to get image size;
info = imfinfo(\'yosemite.jpg\'); % to get format of image;
3)
Answer:
K = imresize(A,[200 300]); % to resize the image;
figure, imshow(K); % to dispaly image;
4)
Answer:
I = imread(\'yosemite.jpg\');
J = imcrop(I,[60 40 100 90]); % to crop the image;
5)
Answer:
I2 = im2double(A); % Convert image to double precision
I = mat2gray(I2); %Convert matrix to grayscale image
6)
Answer:
I = imread(\'yosemite.jpg\');
imhist(I); %Histogram of image data
