[MPlayer-dev-eng] [PATCH] add 8 bit Bayer format and filter

Rich Felker dalias at aerifal.cx
Fri Mar 7 07:54:12 CET 2008


On Fri, Mar 07, 2008 at 05:42:43AM +0100, Michael Niedermayer wrote:
> What this thread is about is entirely different, there is no lowpass
> filter at all. 

If the data is insufficiently sampled, it's aliased and already
damaged beyond all hope of repair. Fortunately the optics provide a
decent amount of band-limiting so it's probably not that bad..

> > I agree. There's nothing nonlinear about this interpolation. All it
> > requires is the right filter coefficients.
> 
> This reminds me of something mans said about you being an expert in
> everything you never heard of before.
> Anyway ill leave this to you to deal with, i dont have the energy for this
> fight, write some linear interpolation and let the world have some
> entertainment with the resulting images.

Linear filter and linear interpolation have nothing to do with one
another. I guess it was poorly worded since it sounded like I was
talking about linear interpolation, but what I meant was of course
that, whatever the proper interpolation is, it's given by a linear
transformation, i.e. there's no need for terms that involve products
of distinct sample values (or higher powers of single samples).

> Ive seen the difference, ill post a link to some of the papers if i find
> them again.
> The difference from linear to non linear methods is like that of a 320x240
> to a 640x480 image. (ignoring the aliassing artifacts the linear variant
> inevitably has)

I'll happily read the papers, but if you really mean to say that the
transformations are not linear, it sounds like magic to me, and highly
heuristic. I don't see any mathematically convincing way that
nonlinear terms could recover lost information from reality.

Of course, it could look pretty like 2xSaI...

Rich



More information about the MPlayer-dev-eng mailing list