[MPlayer-dev-eng] [PATCH] -vf combdetect: crude detection of interlaced sources
Steinar H. Gunderson
sgunderson at bigfoot.com
Mon Aug 2 20:05:23 CEST 2010
On Mon, Aug 02, 2010 at 06:39:05PM +0200, Reimar Döffinger wrote:
> But even for detecting combing it should be quite simple to do a lot
> better, e.g. by comparing C(line i, line i+1) to C(line i, line i+2) where
> C is the covariance.
Or even simpler, since we're bikeshedding anyway: Compare, for each x,
sum(even lines) and sum(odd lines). As far as I can see, this is exactly
equivalent to checking the strength of the frequency bin at the Nyquist
frequency and comparing it to the DC strength (DC would be sum_odd +
sum_even, Nyquist frequency would be sum_odd - sum_even).
Of course, you'd need the same heuristics from there as with any other
solution.
/* Steinar */
--
Homepage: http://www.sesse.net/
More information about the MPlayer-dev-eng
mailing list