News for hackers. Stuff that matters.
Re:High-quality pro image resizing / scaling C++ library by zcw100 on Saturday July 22, 2023 @11:45AM (#36827208)
I'm wondering what they're referring to with "The author even believes this algorithm provides the "ultimate" level of quality (for an orthogonal, non neural-network, resizing)"
Re:High-quality pro image resizing / scaling C++ library by nateb2022 on Saturday July 22, 2023 @02:30PM (#36828513)
Same question regarding the "pro" moniker. Also, why did he commit pre-built binaries to git?
Re:High-quality pro image resizing / scaling C++ library by ozfive on Saturday July 22, 2023 @04:58PM (#36829862)
Pro programmer != Github Pro?
Re:High-quality pro image resizing / scaling C++ library by lionkor on Saturday July 22, 2023 @05:31PM (#36830170)
Possible, but weird. Like not knowing Ctrl+S to save and s instead clicking through a menu, or not knowing to generally write source comments, or going swimming fully clothed. Just things that people of the assumed age and experience usually don't do by accident.
Re:High-quality pro image resizing / scaling C++ library by pyinstallwoes on Sunday July 23, 2023 @02:22AM (#36833005)
Amazing programmers are generally pretty weird.
Re:High-quality pro image resizing / scaling C++ library by aleksv on Sunday July 23, 2023 @10:44AM (#36835794)
Preserving 12-bit resolution is "Pro" HDR. Original Lanczos offers 8-bits at best.
Re:High-quality pro image resizing / scaling C++ library by pornel on Saturday July 22, 2023 @02:33PM (#36828548)
There's school of thought that pixels are point samples of a waveform (separately along horizontal and vertical axis, and that separation is useful for performance). In such interpretation resizing is downsampling that removes higher frequencies. You can then reason about this mathematically and show that you have an optimal filter, which preserves as many frequencies as possible, without bias or aliasing.

In practice, it's a bit more complicated, because pixels can form a square wave without Gibb's phenomenon. Physically they're not points. And there are all kinds of biological factors in perception.

As for reference to neural networks, I'm not sure. They're used for superresolution (upscaling), but I haven't seen them used for downscaling. They could be in theory.

Re:High-quality pro image resizing / scaling C++ library by pyinstallwoes on Sunday July 23, 2023 @02:21AM (#36833003)
Damn you seem to know quite a bit about this. That's an interesting way to map the problem domain. You hit it on the nail from my perspective because the author of the linked library is known for his audio plugins (voxengo). So he's definitely coming at it from the perspective of bandwidth and frequencies. Interesting.

Just curious if this makes you think of similar things that might be equally interesting to think about (share?)

Thanks!

Re:High-quality pro image resizing / scaling C++ library by defrost on Sunday July 23, 2023 @02:45AM (#36833091)
The earliest pre 2000 JPG specification included compression based on FFT and Fourier theory - using long (infinite) additive waveforms to match image features and then knocking off least terms to compress with some sense of "least" loss.

Using traditional FFT long waveforms introduced particular kinds of artifacts.

The 2000 JPG spec included the use of localised cosine wavelets .. just like trad. FFT (kind of) but scaled from one at origin to zero at a local radius to suppress the echoing artifacts.

The notion first (IIRC) appeared in the "infinitely scrollable" and "instantly loading" (at top level .. with infill as time passed) not-JPEG earth scale mapping images used by both LizardTech (DejaVu(?)) and ERMapper (ECW images) in the early 1990s.

The "google map style" applications kind of died on the vine for a bit after a series of dragged out patent arguments then came back in modified form.

https://en.wikipedia.org/wiki/LizardTech,_Inc._v._Earth_Reso....

Re:High-quality pro image resizing / scaling C++ library by pornel on Sunday July 23, 2023 @10:01AM (#36835385)