deinterlace
Top  Previous  Next

deinterlace ( integer Input, integer Output [, integer Field =0 ] )

Use this function to remove motion artifacts from an image acquired with an interlaced video device. The function removes odd or even lines from the image and substitutes them with the interpolated lines.

Parameters
 
Input  
 
An integer between 0 and 116 specifying the input image frame number. A value of 0 represents the DMA memory buffer of the video device. Values in the range of 100-116 correspond to hidden frames.  
 
Output  
 
An integer between 1 and 116 specifying the output image frame number. Values in the range of 100-116 correspond to hidden frames.  
 
Field  
 
An enumerated integer that describes the field used for interpolation. Must be one of the following values:  
 
F_ODD=0 – leaves odd lines intact and interpolates even lines  
F_EVEN=1 – leaves even lines intact and interpolates odd lines  
Default value: F_ODD  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  

Example

This set of statements continuously captures and deinterlaces an image:  
 
do  
grabIm (0)  
deinterlace (0,1)  
loop