在不知道校准因子的情况下将对象长度从像素转换为cm [英] Convert object length from pixels to cm without knowing the calibration factor

查看:116
本文介绍了在不知道校准因子的情况下将对象长度从像素转换为cm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在数字图像中,尺寸(或距离)以像素为单位测量。

In a digital image, size (or distance) is measured in pixels.

是否有任何方法可以在不知道的情况下查找图像中对象的实际尺寸校准因子?

Is there any method to find the actual size of an object in an image without knowing the calibration factor?

推荐答案

据我所知,没有通用解决方案


  • 对于特定的对象(大多数是批量生产的,或者有规格/图纸可用),你可能是能够在事后找到校准因子。或者,如果照片中还有其他已知尺寸的内容,您可以使用 来计算您关注的对象的大小(例如 - 考虑来自花式显微镜的图像,在图像的某处有一个比例指示器。)

  • 如果您有光电探测器的详细信息(例如像素大小;假设它是电子设备),则镜头的参数为在拍摄照片时,与物体的距离等,您可以使用简单的光学计算估算物体大小(如几何光学)。

  • For specific objects (mostly those that are mass produced, or have specs/drawings available) you might be able to find the "calibration factor" after the fact. Alternatively, if there's anything else in the photo that has known dimensions, you might be able to use that to compute the size of the object you care about (for example - consider images that come from fancy microscopes, that have a "scale" indicator somewhere on the image).
  • If you have the details of the photodetector (e.g. pixel size; assuming it's an electronic device), the parameters of the lens being used when taking the photo, the distance to the object etc., you might be able to estimate the object size using straightforward optical computations (like Geometrical optics).

这篇关于在不知道校准因子的情况下将对象长度从像素转换为cm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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