Upsampling image

Started by
2 comments, last by cignox1 18 years, 10 months ago
I want to upsample an image using bicubic interpolation. Something like this: http://astronomy.swin.edu.au/~pbourke/colour/bicubic/ but with C/C++ source code included. :)
Advertisement
Ah, whatdayaknow. I finally found it in his libraries here:

http://astronomy.swin.edu.au/~pbourke/libraries/

Problem solved.
Well, it seems to work ok, but that 4x4 inner loop it uses is *extremely* slow.
It does a good job of killing the speed.
Have to look for something faster because I want to sample images up to 4096 x 4096.
The only thing I can think of (don't even sure if it can be done in your case) is to replace the loop with the actual 16 instructions. If this function is called very often (as it should be, if I understood correctly), you should be able to gain a little speed, but I don't know how much. It worth give a try, I think...

This topic is closed to new replies.

Advertisement