convert BGRA8 image format to RGB format
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Is there a built-in function for conversion of BGRA8 image to RGB image? If there is no available function for the conversion, is there a way to make this conversion?
0 Kommentare
Akzeptierte Antwort
Jan
am 12 Okt. 2021
Do you have the pixels values as UINT8 array already? Then:
RGB = BGRA8(:, :, [3, 2, 1])
7 Kommentare
Weitere Antworten (1)
Cam Salzberger
am 13 Okt. 2021
Since the image data is coming out of a ROS message, you can use the ROS functions to extract the image from it:
-Cam
Siehe auch
Kategorien
Mehr zu Specialized Messages finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!