imread, imresize, subplot and imshow function of matlab
clear all;
close all;
clc;
%% Image Read
img_apple = imread('D:\MS(CS)-2Semister\Digital image processing\Image-Processing-Presentation(28feb2019)\Images\1.jpg');
img_fire = imread('D:\MS(CS)-2Semister\Digital image processing\Image-Processing-Presentation(28feb2019)\Images\2.jpg');
img_brain = imread('D:\MS(CS)-2Semister\Digital image processing\Image-Processing-Presentation(28feb2019)\Images\3.jpg');
img_eye = imread('D:\MS(CS)-2Semister\Digital image processing\Image-Processing-Presentation(28feb2019)\Images\4.jpg');
img_breast = imread('D:\MS(CS)-2Semister\Digital image processing\Image-Processing-Presentation(28feb2019)\Images\5.jpg');
%% Resizing Images
% img_apple = imresize(img_apple,0.5);
% img_fire = imresize(img_fire,0.5);
% img_brain = imresize(img_brain,0.5);
% img_eye = imresize(img_eye, 0.5);
% img_breast = imresize(img_breast,0.5);
img_apple = imresize(img_apple,[256 256]);
img_fire = imresize(img_fire,[256 256]);
img_brain = imresize(img_brain,[256 256]);
img_eye = imresize(img_eye, [256 256]);
img_breast = imresize(img_breast, [256 256]);
%% Showing Images
subplot(551), imshow(img_apple);
subplot(552), imshow(img_fire);
subplot(553), imshow(img_brain);
subplot(554), imshow(img_eye);
subplot(555), imshow(img_breast);
0 Comments