-
Notifications
You must be signed in to change notification settings - Fork 412
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
DepthImage flickering in rerun 0.18 #7252
Comments
Can you please elaborate - inconsistent how? Do you have some screenshots or video you can add? You're using an 8-bit buffer for the depth image - this will cause severe quantizing. You can use a full - let depth_image_buffer: image::GrayImage =
- image::ImageBuffer::from_fn(width as u32, height as u32, |x, y| {
- let depth = depth_image[y as usize * width + x as usize];
- if depth.is_infinite() {
- image::Luma([0u8])
- } else {
- let normalized_depth = (depth - min_depth) / (max_depth - min_depth);
- image::Luma([(normalized_depth * 255.0) as u8])
- }
- });
+ let depth_image_buffer = ndarray::Array::from_iter(depth_image.iter().cloned())
+ .into_shape((height, width))
+ .unwrap(); with ndarray = "0.15" in your Cargo.toml |
I will try to use f32 or u16 illustrated in https://rerun.io/docs/reference/types/archetypes/depth_image. I am using u8 since that is the only way I can work with related to #7134 |
It could be related to #6106 |
Yes, I think this is just #6106 aggravated by using |
Describe the bug
The depthimage logged in rerun 0.18 may become inconsistent between frames. It looks like flickering. The same behavior does not exist in 0.17. I feel like it could be related to the background rrd file compression?
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
Rerun version
0.18.0
The text was updated successfully, but these errors were encountered: