Coder Social home page Coder Social logo

Comments (4)

hyclover avatar hyclover commented on September 27, 2024

I tried to use RD = cv2.imread(os.path.join(root, '000001.png'), cv2.COLOR_BGR2GRAY) / 255 * max and just got the normal result. So the question is did I not use the right depth value before?
image
my final result

from depth2hha-python.

charlesCXK avatar charlesCXK commented on September 27, 2024

@hyclover
Hi, I think the depth map should not be normalized or be viewed as a 3-channel color map. If you normalize the depth map, such as depths = depths / max * 255, the maximum depth value would be 255 meters, and the hyper-parameters used in our code will be not suitable.

from depth2hha-python.

hyclover avatar hyclover commented on September 27, 2024

@hyclover
Hi, I think the depth map should not be normalized or be viewed as a 3-channel color map. If you normalize the depth map, such as depths = depths / max * 255, the maximum depth value would be 255 meters, and the hyper-parameters used in our code will be not suitable.

I just got the code from the Internet to extract the depth image. Would you mind sharing your code for extracting depth images from official Matlab file nyu_depth_v2_labeled.mat. Thanks very much!

from depth2hha-python.

charlesCXK avatar charlesCXK commented on September 27, 2024

@hyclover
As you illustrated above, I think you just need to remove the normalization code. Finally, the depth value of NYU Depth v2 images will lie in [0, 20] meters for most cases, since it is an in-door dataset.

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.