Quantcast
Channel: 質問!ITmedia 新着質問(Java/253)
Viewing all articles
Browse latest Browse all 2439

processingでアフィン変換の画像拡大

$
0
0
下記のプログラムがアフィン変換のプログラム。最後の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

Viewing all articles
Browse latest Browse all 2439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>