Gimp-Forum.net
Question about gimp scaling algorithms - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Gimp 2.10 (https://www.gimp-forum.net/Forum-Gimp-2-10)
+--- Thread: Question about gimp scaling algorithms (/Thread-Question-about-gimp-scaling-algorithms)



Question about gimp scaling algorithms - Ben321 - 07-18-2018

I notice that there are 2 new scaling algorithms. These are LoHalo and NoHalo. How exactly do these work? I've found nothing on the internet about them (for example academic papers on image scaling algorithms), so I assume that they are exclusive to the Gimp software, have been invented directly by Gimp's developers. So I'm hoping somebody on these forums can explain exactly what calculations it performs. For example, are they based on the Cubic algorithm? Or maybe based on a Sinc function? Or are they based on some kind of AI, that "sees" the image in the same way the human brain sees it, and so actually attempts to make a reasonable effort to scale the image based on what would look the most natural to the human brain?


RE: Question about gimp scaling algorithms - rich2005 - 07-18-2018

It is in the release notes (somewhere)

LoHalo method: when you downscale an image thats less than a half of the original size
NoHalo method: when you do not reduce the size much (rotate, shear or something)
LoBlur method (yet to come) will produce very sharp outcome
LoJaggy (yet to come) is a special method and aimed on reducing jaggyness

Not academic:
A commentry worth a read: https://freedomsponsors.org/issue/78/add-other-samplers-that-properly-reduce-downsample-and-warp-images
which refers to this IM article: http://www.imagemagick.org/Usage/filter/nicolas/ again worth a read.


RE: Question about gimp scaling algorithms - Ben321 - 07-18-2018

(07-18-2018, 10:24 AM)rich2005 Wrote: It is in the release notes (somewhere)

LoHalo method: when you downscale an image thats less than a half of the original size
NoHalo method: when you do not reduce the size much (rotate, shear or something)
LoBlur method (yet to come) will produce very sharp outcome
LoJaggy (yet to come) is a special method and aimed on reducing jaggyness

Not academic:
A commentry worth a read: https://freedomsponsors.org/issue/78/add-other-samplers-that-properly-reduce-downsample-and-warp-images
which refers to this IM article: http://www.imagemagick.org/Usage/filter/nicolas/ again worth a read.

What I mean is what is the actual algorithm used fro NoHalo and LoHalo? Is it even based on a kernel, like other scaling methods? If so, what kernel is it using? If not, what kind of algorithm is it even using?


RE: Question about gimp scaling algorithms - rich2005 - 07-19-2018

You really need to ask the Gimp developers (none here) on this subject. IRC or mailing list https://www.gimp.org/irc.html

AFAIK was a crowdfunding project, to improve/put code by Nicolas Robidoux into Gimp. This code started off in ImageMagick so it is worth going back and looking there.

In Gimp? It is in GEGL somewhere and goes back some time.

For example, part was 'improving the way resampling is applied during transformation'
some code here: https://gitlab.gnome.org/GNOME/gegl/commit/760e04bdf755d1183d0204bb764b315477c5358e

best of luck