Mystery Keeper
22nd November 2008, 17:26
I'm experimenting with deinterlacing and need help on theoretical side.
I take a frame and throw away all the odd lines. I can restore the lines which have both neighbours, interpolating them. But the bottom line has only one neighbout line and can not be processed that way.
Let's say our half frame has a height of N. I get a picture with a height of 2N-1, but I need 2N. I could just use another interpolation method to resize it to 2N, but that would shift the pre-existed lines, and I really don't want that.
The last line has to be extrapolated using only the info from interpolated to 2N-1 frame. How can I do that?
I take a frame and throw away all the odd lines. I can restore the lines which have both neighbours, interpolating them. But the bottom line has only one neighbout line and can not be processed that way.
Let's say our half frame has a height of N. I get a picture with a height of 2N-1, but I need 2N. I could just use another interpolation method to resize it to 2N, but that would shift the pre-existed lines, and I really don't want that.
The last line has to be extrapolated using only the info from interpolated to 2N-1 frame. How can I do that?