Skip to content

Image viewer normalizes (?) the colors and popup shows unnormalized RGB #2274

@roym899

Description

@roym899

Describe the bug

import rerun as rr
import numpy as np
import matplotlib.pyplot as plt

rr.init("image color", spawn=True)
img = np.random.random((300, 300, 3)) * 0.2
rr.log_image("image", img)
print(img.min(), img.max())  # to check they are in range [0,1]

plt.imshow(img)
plt.show()

gives
image_color

Hovering over the image in rerun shows low RGB values, but bright colors.

Expected behavior
I'd expect it to look the same / very similar with the shown RGB values being the same as those in the raw data.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04

Rerun version

rerun_py 0.7.0-alpha.0+ [rustc 1.69.0 (84c898d65 2023-04-16), LLVM 15.0.7] x86_64-unknown-linux-gnu main b263b9f, built 2023-05-29T18:38:22Z

Also happens in 0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    📺 re_vieweraffects re_viewer itself🪳 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions