How I can convert from GRAY8 to YUV420?

asked 2018-01-24 08:13:03 -0600

isra60 gravatar image

I found this code colors https://docs.opencv.org/3.1.0/d7/d1b/...

But I don't found this conversion...

edit retag flag offensive close merge delete

Comments

just curious, why do you need this ?

you'll probably need 2 steps, gray -> bgr; bgr -> yuv

berak gravatar imageberak ( 2018-01-24 09:49:00 -0600 )edit

This is for a gray 8 camera source and pass to an encoder which needs yuv420 format

isra60 gravatar imageisra60 ( 2018-01-25 00:42:24 -0600 )edit