java - Matching of images according to two points -


i have pattern image set of points , second tested image set of points. know coordinates x,y of points.problem description points have names (numbers), know numbers of points in pattern image , in tested sample know numbers of 2 points. want rotate tested image according these 2 known points fit tested image on pattern image (i don´t want scale it). want calculate distances of pattern points tested points. want write algorithm in java, idea how that?

hava @ java.awt.geom.affinetransform, you'll find tutorials that, too. seems want map blue 0 onto red 0, i'd start translating both groups such 0 in origin of coordinate system. see affinetransform.gettranslateinstance.

next i'd inspect vectors points 1 in blue , red group. can find angle respect x axis (arctan(y/x)). difference of 2 angles angle want rotate blue group points 1 point same direction. see affinetransform.getrotateinstance. matching pairs of points seems difficult part...


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -