You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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}
)
);
``
The text was updated successfully, but these errors were encountered:
How can I find the two logged images in the viewer?
The text was updated successfully, but these errors were encountered: