フィルターのクリア

How can I change the Horizontal Resolution and Vertical Resolution of image?

2 ビュー (過去 30 日間)
Shantanu Jana
Shantanu Jana 2015 年 3 月 19 日
コメント済み: Walter Roberson 2015 年 7 月 22 日
filename='b.bmp';
info = imfinfo(filename);
info
if (info.HorzResolution>0&&info.VertResolution>0)
xres = info.HorzResolution;
yres = info.VertResolution;
f=7874/xres;
B= iir(filename,50);
filename=sprintf('b.bmp');
imwrite(B,filename);
else
display('No DPI');
end
I have written this code to change the Horizontal Resolution and Vertical Resolution of image but after creating new image by this code when I am calling the new image by the code It say No DPI

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by