Closed manuelli closed 3 years ago
Oof, good catch. I’ll make sure to get this fixed before the next merge into master.
We’ll actually likely be updating this example to use the newer visii.render_to_file API, which supports saving raw segmentations as EXR files with signed 32-bit float channels. There are other examples though where we probably make a similar mistake.
These examples have since been updated to use the newer data exporter, so I'm closing this issue. Thanks for the help
Changing the height and width parameters in the meta data exporting example to have a non-square image results in incorrect meta data images (e.g. depth) being extracted. I am using
--width 640 --height 480
. In this casedepth.png
is480 x 640
image instead of640 x 480
.For reference here is the RGB image
and the depth image
I believe this is due to an error in reshaping the
depth_array
in this line. It currently readsChanging the order of
height
andwidth
fixes the issue and produces correct depth imagesGiven this I am not sure why the original example worked (even with a square image) since it seems like height and width may still have been swapped in the original example.
Of course the same fix needs to be applied to the other metadata fields as well (normals, positions, segmentations, etc.).