BBC BASIC for Windows
« Image scaling (bilinear interpolation) »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:26pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Image scaling (bilinear interpolation)  (Read 1847 times)
David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Re: Image scaling (bilinear interpolation)
« Reply #4 on: Dec 28th, 2012, 6:34pm »

Here's a demo (with source) using Richard's rather striking "zone-plate image":

http://www.bb4wgames.com/temp/scalebilinear.zip

Press <space bar> to toggle between nearest-neighbour and bilinear-interpolated scaling.

Demo2 features a SFW female face image. Overall, bilinear looks a bit better (though struggles with her hair a bit).

Bear in mind GFXLIB_ScaleBilinear isn't intended for real-time scaling, at least not in its current, nasty form.

Nice article on MMX-powered bi. interp.:
http://software.intel.com/sites/landingpage/legacy/mmx/MMX_App_Bilinear_Interpolation_RGB.pdf

Even I can understand much of it!


Regards,

Daiv.d
« Last Edit: Dec 28th, 2012, 6:37pm by David Williams » User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Image scaling (bilinear interpolation)
« Reply #5 on: Dec 28th, 2012, 9:51pm »

on Dec 28th, 2012, 6:34pm, David Williams wrote:
Here's a demo....
Demo2 features a SFW female face image....

Thanks. I would imagine the quality jump from 'nearest neighbour' to 'bilinear' is more marked than any further improvement achievable by using a more complex algorithm.

Quote:
Daiv.d

Seems rather Dune-like. Do you wish always to be called Daiv.d from now on?

Richard.
User IP Logged

David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Re: Image scaling (bilinear interpolation)
« Reply #6 on: Dec 28th, 2012, 10:05pm »

on Dec 28th, 2012, 9:51pm, Richard Russell wrote:
Seems rather Dune-like. Do you wish always to be called Daiv.d from now on?


It really was a typo.


David.
--
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls