下記のプログラムがアフィン変換のプログラム。最後の640と480のfor文を使って回すとこで4点座標の枠内を拡大するところだがそこがうまくできないので教えていただきたい。 PImage AffineTransforms() { int model = 4; float[][] bacexy = {{points[0].x,points[0].y},{points[1].x,points[1].y},{points[2].x,points[2].y},{points[3].x,points[3].y}}; int[][] purxy = {{0,0},{640,0},{640,480},{0,480}}; float[][] matrix = {{0,0,0},{0,0,0},{0,0,0}}; float[][] matrix1 = {{0},{0},{0}}; float[][] matrix2 = {{0},{0},{0}}; float[][] matrix3 = {{0,0,0},{0,0,0},{0,0,0}}; float[][] mat = {{0,0},{0,0}}; float[][] mat1 = {{0},{0}}; float[][] x_y = {{0},{0}}; for(int i=0;i
↧