convert BGRA8 image format to RGB format
4 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Jan
2021-10-12
Do you have the pixels values as UINT8 array already? Then:
RGB = BGRA8(:, :, [3, 2, 1])
更多回答(1 个)
Cam Salzberger
2021-10-13
Since the image data is coming out of a ROS message, you can use the ROS functions to extract the image from it:
-Cam
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specialized Messages 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!