Reducing Size of image Algorithm in Matlab

Algorithm
ダウンロード: 25
更新 2018/3/13

ライセンスの表示

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

引用

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. 取得済み .

MATLAB リリースの互換性
作成: R2017b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersImages についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0