-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output of grayscale depthmaps #65
Comments
Not sure if depth pro has an option for this, but the output of the model is a metric depth array. You need to normalize the depth values between 0 and 255 to get a traditional 8 bit greyscale image (and possibly invert it), then save the file as a PNG or whatever format. |
You can run depth_pro and save a floating point tif file using something like this snippet:
A floating point tif will give you the full range and precision of the calculated depth, including values above 1 meter. You can also use the But be careful when loading up the tif file in image editors like photoshop or gimp, since all of then will apply some sort of color conversion instead of display the actual floating point values. You can use this script to display the tif images properly, and sample the values using the mouse: |
How can I output grayscale depthmaps (and nothing else)?
The text was updated successfully, but these errors were encountered: