"IMG_sobel_3x3_8(const unsigned char *in_data, unsigned char *out_data, short cols, short rows)" is a function in IMGLIB. Which video format should I use as "in_data" while using this function?
I've tried UYVY but it did not work. So I transformed from UYVY to YUY2. I made it (the sequence below).
a. To transform in_data from UYVY to YUY2, and store it in "tmp1".
b. Declare "tmp2" and call IMG_sobel_3x3_8(tmp1,tmp2,cols,rows).
c. To transform tmp2 from YUY2 to UYVY and then out_data = tmp2.
Why does not the function deal with UYVY video format? Does all of functions in IMGLIB just deal with YUY2 video?
Thanks.