I'm trying to convert an image in the format YUV422 given by a firewire camera to an RGB image, but unsuccessfull. No matter what I do I always get a very weird image.
I'm not sure which step to use, but I think that for an image width 320x240 the YUV422 image step would be 640, right?
This is what I do:
imgSize.width = 320;
imgSize.height = 240;
rgbImg = ippiMalloc_8u_C3( 320, 240, &step );
ippiYUV422ToRGB_8u_C2C3R( img, 640, rgbImg,
step, imgSize );
Thanks in advanced for any help.