This example shows you how to remove interlacing effects from an image by using the
Open the model by calling the
open function in MATLAB command prompt. Specify the name of the Simulink file to open.
The model uses the
File block to read an interlaced image from a specified file location. The
Method parameter of the
Deinterlacing block is set to
interpolation. Hence, the model converts the interlaced image at the input into a deinterlaced image by using the linear interpolation technique. The fixed-point parameters and the data types are set to default values. The model displays the interlaced input image and the deinterlaced output image by using the
Simulate the model and display the results.
The interlaced image has jagged lines that are the result of the temporal lag between the top and the bottom fields of the image. The
Deinterlacing block removes the jagged lines and the output image is free from visible artifacts.