Since there’s no native implementation of interpolation in JavaScript (beside nearest-neighbor), I’m trying to make my own method. But considering that bicubic (or bilinear) interpolation requires neighbor pixels (16 or 4), what should I do with edge pixels that doesn’t have needed amount of neighbors? Should I just ignore them? But the interpolation formula requires all pixels.
Since there’s no native implementation of interpolation in JavaScript (beside nearest-neighbor), I’m trying to
Share
Generally, you make up a value for the imaginary edge pixels.
The easiest way is to set all edge pixels to white or black, but it’s pretty easy to set them to the color of the nearest real pixel.