How to get frame matrix in(c deepstream_test3.c) and trans the image in opncv

Can you refer Deepstream sample code snippet - #3 by bcao