Bi-Cubic Interpolation Algorithm for Image Scaling
问题 I'm trying to write a basic bicubic resize algorithm to resize a 24-bit RGB bitmap. I have a general understanding of the math involved, and I'm using this implementation from Google Code as a guide. I'm not using any external libraries here - I'm just experimenting with the algorithm itself. The bitmap is represented as a plain std::vector<unsigned char> : inline unsigned char getpixel(const std::vector<unsigned char>& in, std::size_t src_width, std::size_t src_height, unsigned x, unsigned y