Skip to main content
. 2019 Dec 9;19(24):5430. doi: 10.3390/s19245430
Algorithm 2: Statistic filtering of feature displacement
Input: Candidate matched images I1, I2.
Output: Good feature matches VMgood
1: Detect features I1, I2 to obtain descriptors Mdes1, Mdes2 and key points Mkeys1, Mkeys2
2: Match Mdes1, Mdes2 to obtain the original matches VMmatches with brute force matcher and hamming distance
3: Calculate the key-points displacements for VMmatches in x and y components Δu=u1u2, Δv=v1v2
4: Create a 2D histogram with Δu and Δv to confirm the highest bins for mode approximation
5: Use the sample within the radius to perform parameter estimation of the Laplacian distribution in x and y
6: Determine the min and max boundary values to include a certain percentage ratio = 0.9 of inliers, assuming a Laplacian distribution
7: Find the matches VMu_mats according to the boundary in Step 6
8: Repeat Steps 6 and 7 to find the matches VMv_mats
9: Calculate the common element Vcom from VMu_matches and VMv_matches
10: For id in VMmatches
11:  If id in Vcom
12:   Pushback the corresponding element into VMgood
13:  End
14: End