rerun icon indicating copy to clipboard operation
rerun copied to clipboard

f64 depth images aren't displayed in the UI

Open nikolausWest opened this issue 3 years ago • 1 comments

After #608 f64 depth images don't get shown in the viewer. Instead we get the following on logs in the terminal:

2022-12-23T12:22:46.423032Z  WARN re_viewer::misc::caches::tensor_image_cache: Bad image "tensor [270, 480]": Don't know how to turn a tensor of shape=[270, 480] and dtype=F64 into an image

nikolausWest avatar Dec 23 '22 12:12 nikolausWest

This doesn't just apply to depth images but to any f64 monochrome image.

jleibs avatar Feb 16 '23 03:02 jleibs

This applies to any image shaped tensors, whether it's depth or albedo.

ClassicTensor::as_dynamic_image doesn't handle f64s at all.

Also very related to #1435 and #1436

teh-cmc avatar Feb 28 '23 14:02 teh-cmc

Closed by https://github.com/rerun-io/rerun/pull/1686

emilk avatar Apr 04 '23 12:04 emilk