Skip to main content
. 2015 Dec 25;16(1):7. doi: 10.3390/s16010007
Algorithm 1 Layer registration utilizing multiple-layer RANSAC
Input: Initial pair set F1=F, threshold Nmin and iteration index k=0;
Output: Each layer’s matching pair set Lk and its corresponding homography Hk;
repeat
  kk+1
  RANSAC in pair set Fk for model pkn1×Hpkn2=0, where (pkn1,pkn2)Fk;
  Divide outliers Vout and inliers Vin according to H;
  if |Vin|Nmin then
   Set matching pair set of the k-th layer as Lk=Vin;
   Set homography of the k-th layer as Hk=H;
  end if
  Set the pair set of next iteration as Fk+1=Vout;
until |Fk+1|<Nmin