Reducing Size of image Algorithm in Matlab

Algorithm
25 descargas
Actualizado 13 mar 2018

Ver licencia

%% 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

Citar como

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. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2017b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Images en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0