% Test whether homography is affine preimage of line at infinity: H(3,1:2)=[0,0] sugr_get_isaffine_Homography_2D: boolean = transformation is affinity isaffine = sugr_get_isaffine_Homography_2D(H) Wolfgang Förstner wfoerstn@uni-bonn.de wf 2/2011
0001 %% Test whether homography is affine 0002 % preimage of line at infinity: H(3,1:2)=[0,0] 0003 % 0004 % sugr_get_isaffine_Homography_2D: boolean = transformation is affinity 0005 % 0006 % isaffine = sugr_get_isaffine_Homography_2D(H) 0007 % 0008 % 0009 % Wolfgang Förstner 0010 % wfoerstn@uni-bonn.de 0011 % 0012 % wf 2/2011 0013 0014 function isaffine = sugr_get_isaffine_Homography_2D(H) 0015 0016 global Threshold_Euclidean_Normalization 0017 0018 isaffine = norm(H.H(3,1:2)) < Threshold_Euclidean_Normalization;