Deinterlacing a video frame

Deinterlacing a video frame

Hi,

I want to use IPPi for some video analysis and I was wondering what's the best way to deinterlace a full-size video frame into 2 separate field frames.

In analog video (NTSC/PAL) a full size frame usually consists of two parts/fields. The even rows are the even rows of one captured frames and the odd rows are the odd rows of the following frame. This means that a 24 frame per sec. sequence is really 48 inteleaved frames, with each consequtive pair combined into one frame.

Is there a way to use IPP (4.0) to split each frame into 2 half height frames? A way other than just looping on all the rows and copying them using ippiCopy_<mod>() or ippsCopy_<mod>().

Is there an eqivalent to the stride concept in IPPS or IPPI?

Thanks,
Adi

3 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

There is step parameter in functions. For ippIP functions it means the number of bytes between adjucent lines. Please, look on ippi manual, chapter 2, IPP Concepts for the details.

So you need to call ippiCopy twice, one time for the first field and the second time for the other field.

Regards,
Vladimir

Right! I don't know why I didn't think of that.
Thanks,
Adi

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi