RSS/Atom feed Twitter
Site is read-only, email is disabled

Lanczos algorithm matrix

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

op.tfzsz9kxtxpshh@linbox.lo... 07 Oct 20:24
  Lanczos algorithm matrix gg@catking.net 17 Sep 09:01
   Lanczos algorithm matrix Sven Neumann 17 Sep 15:04
gg@catking.net
2006-09-17 09:01:21 UTC (about 18 years ago)

Lanczos algorithm matrix

Hi,

I had just decided to try using a sinc function to remove pixelisation. I did a bit of research googled the mailing lists (well everywhere in fact) but did not find much.

I decided to open and image in Gimp and expand it an try a few values in a convulution matrix. To my frustration it got automatically smoothed.

I soon found the interpelation = none option and tried the other options. I'd not heard of Lanczos Best before so I googled and found out it was the sinc I was trying to do!

Nice work, preemptive development. ;)

It seems pretty good on the tests I did although arguably whether it is better or worse than cubic on my data. Different sure. I think "best" is subjective and depends on the nature of the image.

There was on overall sharpness better than cubic but more aritifacts. This surprised me a bit so I started looking at the code to see if I could determine the parameters and maybe experiment a bit to improve it.

Due to the size of Gimp and the abstraction of all these things going through pdb etc, I did not find all I wanted. However, it did seem that all these resize/rotations etc were operated on a 3x3 matrix and that this dimension is hardcoded.

Could s.o. correct me if I misread that , but it seems to explain why sinc is not giving better results than cubic. If that is the case the complex sinc fn is being represented by only 3 data points (in 1D). While 3 data points may describe a simple cubic interpollation reasonalby well . It in no way represents the complexity of sinc, and so all the F.T. theory behind it falls flat.

My aim is to try a larger matrix for sinc. Could someone point me to where kernel is calculated for sinc and confirm my impression that the resize is fixed to operate on 3x3?

Thanks for any clues. I will save a lot of digging.

regards. GG.

Sven Neumann
2006-09-17 15:04:21 UTC (about 18 years ago)

Lanczos algorithm matrix

Hi,

On Sun, 2006-09-17 at 09:01 +0200, gg@catking.net wrote:

It seems pretty good on the tests I did although arguably whether it is better or worse than cubic on my data. Different sure. I think "best" is subjective and depends on the nature of the image.

The term "Best" has already been removed from the GUI. Are you not working with CVS? You definitely should as the Lanczos code is still undergoing changes. Please also have a look at

http://bugzilla.gnome.org/show_bug.cgi?id=167956 http://bugzilla.gnome.org/show_bug.cgi?id=355178

We could definitely need some help to fix these issues so that the Lanczos option can remain enabled for the upcoming GIMP 2.4 release.

Sven