Bicubic and bilinear interpolation in Actionscript 3

For the second release of utility code from CleVR Stitcher, the Adobe AIR panoramic photo stitcher, I’m offering our InterpolatedBitmapData class.
The class adds support for bicubic and bilinear interpolation to the Actionscript BitmapData class. It adds two public methods - getPixelBilinear and getPixelBicubic. You can call these with sub-pixel coordinates and it will interpolate the RGB value for that point. This should be useful for anyone doing more complex transformations than those offered by the Matrix class. I hope it will be useful to someone. Do let me know if you’re using it. As ever, a link back to clevr.com is appreciated but not required.

Download it as part of the CleVR Actionscript Library

2 Responses to “Bicubic and bilinear interpolation in Actionscript 3”

  1. jepegrafik Says:

    Hi,

    is there any chance that this class could be used in AS2 as well?

  2. matt Says:

    It should probably work with a few edits. It’s been w while since I used AS2, so I can’t remember all the differences.

Leave a Reply