Mixing intra-frame and inter-frame deinterlacing

As we saw in the previous examples, intra-frame and inter-frame deinterlacing methods come with their advantages and disadvantages. A rather intuitive conclusion would be that, if we managed to somehow combine the advantages of the two methods, we would be able to produce much better results.

Vertical and temporal interpolation for deinterlacing

Let's try to implement a method that has the advantages of both intra-frame and inter-frame methods. One way to accomplish this is to substitute each row with the average of the neighboring rows both in time and space. More specifically, if we have to substitute the row r in the frame of the video, we will do it using the average of rows r-1 and r+1 of frame f, row r from frame f-1, and row r from frame f+1. Let's see this in action.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset