Qbasicnews.com

General => General Programming => Topic started by: adosorken on November 01, 2004, 06:38:23 PM



Title: Lanczos3/Mitchell/Spline/Triangle algorithms?
Post by: adosorken on November 01, 2004, 06:38:23 PM
Does anyone know where I can find some BASIC or C code examples of any of these algorithms in use? I've looked on google for what seems like ages now...maybe I'm using incorrect keywords or something but...

For those who don't know, these are algorithms often used in image resizing. The reason I'm looking into them is because my own algorithm used in DeskQueen isn't quite up to par with what I want to do, and I'm looking to replace it with an algorithm already in use and of the efficiency and quality I'm looking for. I've read that Spline is arguably the best for image upsizing, and Lanczos3 is the best for downsizing. So...anyone know of any good links?


Title: Lanczos3/Mitchell/Spline/Triangle algorithms?
Post by: oracle on November 01, 2004, 06:52:39 PM
I dunno if you've heard of the GD library - you probably have, in any case it's the library that php uses for its image functions. It's written in C, maybe it has implementations of those algos in it?

http://boutell.com/gd


Title: Lanczos3/Mitchell/Spline/Triangle algorithms?
Post by: adosorken on November 01, 2004, 07:50:41 PM
404. :( and yeah, I've heard of gd...I've used gd2 in a few sites for thumbnailing routines. It doesn't appear to use the algorithms though. I did find some sourcecode on PSC, but it's a bit hard to follow...I'll keep pluggin away at it though. :D


Title: Lanczos3/Mitchell/Spline/Triangle algorithms?
Post by: wildcard on November 01, 2004, 07:54:38 PM
I got the 404 too seems the server is set to only receive with the 3 w's http://www.boutell.com/gd/


Title: Lanczos3/Mitchell/Spline/Triangle algorithms?
Post by: oracle on November 01, 2004, 09:50:19 PM
Dontcha hate servers like that? :). My university actually enforces it before almost everything... we have urls like www.xxx.xxx.xxx.xxx :o