在matlab中查找像素宽度 [英] Finding pixel width in matlab

查看:288
本文介绍了在matlab中查找像素宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了找到像素宽度,如何在matlab中做到这一点?

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

编辑我需要宽度,例如 mm

谢谢.

推荐答案

尝试使用 ScreenPixelsPerInch 根对象的属性.

Try using the ScreenPixelsPerInch property of the root object.

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

这篇关于在matlab中查找像素宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆