#include <iostream> #include <vector> // ピクセルを表す構造体(RGB) struct Pixel { unsigned char r; unsigned char g; unsigned char b; }; // バイリニア補間関数 Pixel BilinearInterpolate( const Pixel& top_left, const Pixel& top_right, const Pixel& bottom_left, const Pixel& bottom_right, double x_ratio, double y_ratio) { …