Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

Search This Blog

Resizing Image in MATLAB (without using builtin function)


clc
clear all

close all

g=imread('zone.gif');

[r c]=size(g);

t=[];

temp=1;

gemp=1;

for i=1:2:r

    for j=1:2:c

        t(temp,gemp)=g(i,j);

        gemp=gemp+1;

    end

    temp=temp+1;

    gemp=1;

end

img_resized=uint8(t);

figure;

imshow(g);

truesize

figure;

imshow(img_resized)

truesize


No comments

Popular Posts

Followers