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

bug #464466: lanczos "corner" artifacts

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.

3 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

30829573.73721218140299955.... 07 Oct 20:26
  bug #464466: lanczos "corner" artifacts Nicolas Robidoux 07 Aug 22:20
   bug #464466: lanczos "corner" artifacts gg@catking.net 08 Aug 00:00
    bug #464466: lanczos "corner" artifacts David Gowers 08 Aug 02:37
Nicolas Robidoux
2008-08-07 22:20:00 UTC (over 16 years ago)

bug #464466: lanczos "corner" artifacts

Hello:

This is not directly related to the bug, although the following provides a possible alternative to "fixing" the "corner pixel" proglems of the existing lanczos...

A student of mine and I have put together a gimp plug-in which ENLARGES images using a method which is analogous to global cubic splines, that is, which gives results analogous to lanczos.

The plug-in should be ready for distribution in about 1 month.

Features:

--two related methods can be used: the first one---exact area natural biquadratic histosplines---uses the "center" image size convention (like gimp and imagemagick), the other---interpolatory box filtered natural biquadratic histosplines, which is almost the same as natural cubic splines---the "corner" image size convention (like most image enlargement programs)

--the first method is strongly sharpening, the second, less so. Both give very smooth images.

--the user can specify the gamma of the input image, and the gamma of the output image. The default is 2.2 for both.

--the plug-ins are fast: we are not quite done optimizing the code, but as it stands, they produce large enlargements of large images faster than the gimp built-in bicubic, and slower than the gimp buil-in bilinear.

--the drawback of both methods is that they are fairly memory intensive: we have several versions around, but the most likely candidates for release requires the creation of a temporary int16 or float array with as many entries as the input image. On the plus side, we use a moderate size tile cache: gimp_tile_cache_ntiles (((nn>m) ? nn : m) / gimp_tile_width () + 1); where nn is the width, in pixels of the output (enlarged) image, and m is the height, in pixels, of the input (to be enlarged) image.

We would be quite happy to integrate the plug-in into the "built-in" gimp image resize functionality (some assistance would make this happen faster: we don't quite know how to interact directly with the gimp core).

Nicolas Robidoux, Department of Mathematics and Computer Science, Laurentian University

gg@catking.net
2008-08-08 00:00:51 UTC (over 16 years ago)

bug #464466: lanczos "corner" artifacts

On Thu, 07 Aug 2008 22:20:00 +0200, Nicolas Robidoux wrote:

A student of mine and I have put together a gimp plug-in which ENLARGES images using a method which is analogous to global cubic splines, that is, which gives results analogous to lanczos.

Hi,

in what way do you mean the results are analogous to lancsoz?

Could you perhaps compare results of your plugin with the comparitive results on the kingfisher head shot?

http://svenfoo.org/scaletest/133-9.html http://svenfoo.org/scaletest/133Z8g.png http://svenfoo.org/scaletest/133C8g.png and/or the pixel graphic:

http://svenfoo.org/scaletest/133-8.html http://svenfoo.org/scaletest/133Z8g.png http://svenfoo.org/scaletest/133C8g.png

these two images scaled to 133% seemed to be the best cases in that test group for differentiating cubic and lancsoz. It would be interesting to see your plugin results next to those tests. The originals are provided on those html pages.

regards.

--

David Gowers
2008-08-08 02:37:51 UTC (over 16 years ago)

bug #464466: lanczos "corner" artifacts

Hi,

On Fri, Aug 8, 2008 at 7:30 AM, wrote:

On Thu, 07 Aug 2008 22:20:00 +0200, Nicolas Robidoux wrote:

A student of mine and I have put together a gimp plug-in which ENLARGES images using a method which is analogous to global cubic splines, that is, which gives results analogous to lanczos.

Hi,

in what way do you mean the results are analogous to lancsoz?

Could you perhaps compare results of your plugin with the comparitive results on the kingfisher head shot?

http://svenfoo.org/scaletest/133-9.html http://svenfoo.org/scaletest/133Z8g.png http://svenfoo.org/scaletest/133C8g.png and/or the pixel graphic:

http://svenfoo.org/scaletest/133-8.html http://svenfoo.org/scaletest/133Z8g.png http://svenfoo.org/scaletest/133C8g.png

these two images scaled to 133% seemed to be the best cases in that test

133.33% please. If you use just 133.00%, the result will be the wrong dimensions and so, uncomparable.