fill_interlace ( ImageCamera : ImageFilled : Mode : )

Interpolate 2 video half images.

The operator fill_interlace calculates an interpolated full image or removes odd/even lines from a video image composed of two half images. If an image is recorded with a video camera it consists of two half images recorded at different times but stored in one image in the digital form. This can lead to several errors in further processing. In order to reduce these errors the video image is modified. Every second line is re-calculated or removed. The parameter Mode determines whether this must be done for even ('even', 'rmeven') or odd ('odd', 'rmodd') line numbers. If you choose 'even' or 'odd' the gray values in the generated lines are calculated as mean values from the direct neighbors above or below the current pixel, respectively. If you choose 'rmeven' or 'rmodd' the even or odd lines numbers are removed (in that case the resulting image is only half as high as the input image). The value 'switch' for Mode cause the odd and even lines to be exchanged.


Parameters

ImageCamera (input_object)
(multichannel-)image(-array) -> object : byte
Gray image consisting of two half images.

ImageFilled (output_object)
(multichannel-)image(-array) -> object : byte
Full image with interpolated/removed lines.

Mode (input_control)
string -> string
Instruction whether even or odd lines should be replaced/removed.
Default value: 'odd'
List of values: 'odd', 'even', 'rmodd', 'rmeven', 'switch'


Example
read_image(Image,'video_bild') 
fill_interlace(Image,New,'odd') 
sobel_amp(New,Sobel,'sum_abs',3).

Complexity

For each pixel: O(2).


Result

If the parameter values are correct the operator fill_interlace returns the value 2 (H_MSG_TRUE). The behavior in case of empty input (no input images available) is set via the operator set_system('no_object_result',<Result>). If necessary an exception handling is raised.


Parallelization Information

fill_interlace is reentrant and automatically parallelized (on tuple level, channel level, domain level).


Possible Predecessors

read_image, grab_image


Possible Successors

sobel_amp, edges_image, regiongrowing, diff_of_gauss, threshold, dyn_threshold, auto_threshold, mean_image, gauss_image, anisotrope_diff, sigma_image, median_image


See also

median_image, gauss_image, crop_part


Module

Image filters



Copyright © 1996-2005 MVTec Software GmbH