stereolabs / zed-opencv

ZED SDK interface sample for OpenCV
https://www.stereolabs.com/docs/opencv/
MIT License
137 stars 79 forks source link

Color order of retrieved image #72

Closed FangLinHe closed 2 years ago

FangLinHe commented 4 years ago

Some information first:

We recently noticed some confusion of the color order of retrieved images by Camera::retrieveImage function. It seems to us the retrieved image is in RGBA format, based on:

annaborn commented 3 years ago

The same for me!

I was really irritated when I sent the image retrieved by zed camera to our Image Viewer and saw the swapped colors. After debugging I can confirm the issue described above. The memory layout of color channels in LEFT mode is not RGBA, but BGRA.

The issue was opened one year ago. But still no answer and no updates in the documentation.

@adujardin, please check this issue!

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days