Suzan Cioc
Suzan Cioc

Reputation: 30097

Transform from quadrilateral to quadrilateral with AffineTransform?

Is Java's AffineTransform insufficient to hold transformation from one convex quadrilateral to another?

Is this true, that transformation between convex quadrilaterals is fully covered by perspective transform?

Perspective matrix has 8 elements, while Java's has 6. Does this mean that here are insufficient coefficients?

This means that I can't code GUI where user would drag quadrilateral corners and get quadrilateral content transformed correspondently?

How can this be?

Upvotes: 0

Views: 274

Answers (1)

Joni
Joni

Reputation: 111219

An affine transformation maintains parallel lines as parallel. A perspective transform is by definition does not, and therefore is not affine.

A perspective transfrom is included with the JAI ("Java Advanced Imaging") API but I'm not sure what's the official source for it after Oracle bought Sun.

Upvotes: 2

Related Questions