1 | initial version |
shouldn't the last points be 0.0, 500 in src, and 0.0, 300 in dst ?
2 | No.2 Revision |
shouldn't you simply messed up your src and dst points,
the last (4th) points should be 0.0, 500 in src, src_mat, and 0.0, 300 in dst ?dst_mat.
3 | No.3 Revision |
you simply messed up your src and dst points,
the last (4th) points should be 0.0, 500 in src_mat, and 0.0, 300 in dst_mat.dst_mat.
also you should not repeat the 1st point in both arrays (you're actually writing 5 points, not 4), so:
4 | No.4 Revision |
you simply messed up your src and dst points,
the last (4th) points should be 0.0, 500 in src_mat, and 0.0, 300 in dst_mat.
also you should not repeat the 1st point in both arrays (you're actually writing 5 points, not 4), so:dst_mat.
src_mat.put(0,0, 0.0, 0.0);
src_mat.put(1,0, 500.0, 0.0);
src_mat.put(2,0, 500.0, 500.0);
src_mat.put(3,0, 0.0, 500.0);
dst_mat.put(0,0, 0.0, 0.0);
dst_mat.put(1,0, 300.0, 0.0);
dst_mat.put(2,0, 300.0, 300.0);
dst_mat.put(3,0, 0.0, 300.0);