如何从像素转换为Cm或Mm? [英] How to convert from pixels to Cm or Mm?

查看:458
本文介绍了如何从像素转换为Cm或Mm?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海佬..
我将白色像素算作区域检测,例如2500像素.我尝试使用此公式将像素转换为Cm:

区域检测(cm)= 1/像素区域检测* 2.54

但是结果表明每个像素的大小,这不是我所需要的.
我需要的是将以像素为单位的区域检测大小转换为Cm或Mm.
那么,如何将区域检测的大小从像素转换为Cm或Mm?
谢谢..::

Hai guys..
I was count white pixels as an area detection, for example 2500 pixels. I was tried using this formula to convert pixels to Cm :

area detection (cm) = 1 / pixels area detection * 2.54

But the result indicate the size of each pixels and it isn''t what i need.
What i need is to convert size of area detection in pixels to Cm or Mm.
So, how to convert size of area detection from pixels to Cm or Mm?
Thank you.. :)

推荐答案

要将像素转换为毫米,厘米,英寸或任何其他物理尺寸,则需要多少像素到所拍摄图像的英寸.假设您的图像位于Image类的实例中,请查看 Horizo​​ntalResolution [ ^ ]和 VerticalResolution [
To convert from pixels to mm, or cm, or inches, or any other physical measurement, you need to how many pixels there are to the inch in the image as taken. Assuming you have your image in an instance of the Image class, have a look at the HorizontalResolution[^] and VerticalResolution[^] properties.


这篇关于如何从像素转换为Cm或Mm?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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