Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

shouldn't the last points be 0.0, 500 in src, and 0.0, 300 in dst ?

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.

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:

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);