Open
Description
How can I find the two logged images in the viewer?
// Log image to rerun using the tensor buffer adapter defined in `collection_adapters.hpp`.
rec.log("image0", rerun::Image::from_rgb24(img, {width, height}));
// Or by passing a pointer to the image data.
// The pointer cast here is redundant since `data` is already uint8_t in this case, but if you have e.g. a float image it may be necessary to cast to float*.
rec.log(
"image1",
rerun::Image::from_rgb24(
rerun::borrow(img.data, img.total() * img.elemSize()),
{width, height}
)
);
``
Metadata
Metadata
Assignees
Labels
No labels