cp2tform / tformfwd - are points outside controlpoints correctly transformed ?
Ältere Kommentare anzeigen
Hi,
I am getting erratic results when trying to transform a set of 2D points using cp2tform and tformfwd.
When the points to be transformed are situated outside the perimeter of controlpoints, I sometime get negative coordinates (ok knowing the position of my CP), but sometimes the transformed coordinates seem to default to (0,y) or (0,0).
I thought this was caused by the piecewise linear transformation I'm using (as matlab probably cannot draw triangles beyond CP limits), bu it seems I get the same behavior when using projective or polynomial transformations, and tformfwd or tforminv.
What surprises me the most is that I do not get any error or warning message when these outlier points are being (wrongly) transformed ...
Any ideas ?
Akzeptierte Antwort
Weitere Antworten (2)
Sean de Wolski
am 2 Mai 2012
0 Stimmen
How colinear are your control points? If the points are relatively colinear then the contraints in the perpendicular dimension will not be good.
Emmanuel
am 2 Mai 2012
0 Stimmen
Kategorien
Mehr zu Polygonal Shapes finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!