Finding pixel width in matlab

删除回忆录丶 提交于 2019-12-13 08:24:24

问题


In order to find the pixel width, how can I do that in matlab?

EDIT I need the width in say for example mm

Thanks.


回答1:


Try using the ScreenPixelsPerInch property of the root object.

pixelsPerInch = get(0, 'ScreenPixelsPerInch');
mmPerInch     = 25.4;
mmPerPixel    = mmPerInch / pixelsPerInch;


来源:https://stackoverflow.com/questions/13448615/finding-pixel-width-in-matlab

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!