YUV420 to BGR image from pixel pointers

后端 未结 2 659
挽巷
挽巷 2021-01-14 03:03

I am capturing raw output from a decoder which is YUV420. I have got three pointers: Y(1920*1080), U(960*540) and V(960*540) separately.

I want to save the image a

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-14 03:54

    I think OpenCV matrix for your input yuv420 planar image should have 1 channel format instead of 3 channel. Place there Y channel, then U, then V. I found a very similar question HERE Planar YUV420 and NV12 is the same

提交回复
热议问题