Coder Social home page Coder Social logo

Unit conversion about depth2hha-python HOT 6 CLOSED

charlescxk avatar charlescxk commented on September 26, 2024
Unit conversion

from depth2hha-python.

Comments (6)

charlesCXK avatar charlesCXK commented on September 26, 2024

Please check the code:

D = cv2.imread(os.path.join(root, '0.png'), cv2.COLOR_BGR2GRAY)/10000

from depth2hha-python.

WW-0 avatar WW-0 commented on September 26, 2024

Please check the code:

D = cv2.imread(os.path.join(root, '0.png'), cv2.COLOR_BGR2GRAY)/10000

所以不是很明白为什么是除以10000,这步骤是干嘛的,如果是单位换算米和毫米之间不应该是1000吗

from depth2hha-python.

charlesCXK avatar charlesCXK commented on September 26, 2024

你好,原始图片没有说是用mm单位保存的,所以按他保存的单位处以10000后是“米”

from depth2hha-python.

WW-0 avatar WW-0 commented on September 26, 2024

你好,谢谢回复。

  1. 为什么要除以10000呢,有什么作用呢,我是把原始图片的深度值打出来查看的值大概是2000+,所以我猜测是单位是毫米,并且我看kinect的值都是毫米。
  2. 我看matlab版本saveHHA.m 中有这么一句‘’‘ D = double(D)/1000; %The unit of the element inside D is 'meter' ’‘’
    所以我有点疑惑,方便加下联系方式进行进一步沟通吗

from depth2hha-python.

charlesCXK avatar charlesCXK commented on September 26, 2024

你可以用我提供的demo读进来试试,我刚看了处以10000之后单位是米没问题的。最大、最小的深度值都是个位数。你说的情况我不确定是读错了还是数据跟我不一样,总之保证输入函数的单位是米即可。

from depth2hha-python.

WW-0 avatar WW-0 commented on September 26, 2024

谢谢回复。刚才仔细检查了下,matlab版代码里的深度图和pyton版demo里的图数值差了10倍,所以才导致不一样。只要最终保证单位是米即可

from depth2hha-python.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.