Reducing Size of image Algorithm in Matlab

Algorithm
26 Downloads
Aktualisiert 13. Mär 2018

Lizenz anzeigen

%% Algorithm for minimizing the size of the object
clc
clear all
a=imread('3.png');
imshow(a)
[r,c]=size(a);
i=1;j=1;
c=c/3;
b=zeros(floor(r/2),floor(c/2));
for x=1:2:r
for y=1:2:c
b(i,j)=a(x,y);
j=j+1;
end
i=i+1;
j=1;

end
figure
imshow(b/255),colormap(colorcube)
figure
imagesc(b/255),colormap(gray)
impixelinfo

Zitieren als

ABHILASH SINGH (2024). Reducing Size of image Algorithm in Matlab (https://www.mathworks.com/matlabcentral/fileexchange/66470-reducing-size-of-image-algorithm-in-matlab), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2017b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Images finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0