필터 지우기
필터 지우기

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 CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by