Research Article
Image Matching Using Dimensionally Reduced Embedded Earth Mover’s Distance
function Calculate_Sampling(image 1, image 2) | begin | Initialize _vector 1 | Initialize _vector 2 | Initialize sampling__Vector 1 | Initialize sampling__Vector 2 | Initialize sampling_EMD | Set _vector 1 to Calculate_ (image 1) | Set _vector 2 to Calculate_ (image 2) | Select 10% indexes of _vector 1 randomly | Put the elements of selected indexes of _vector 1 into sampling__Vector 1 | Put the elements of selected indexes of _vector 2 into sampling__Vector 2 | Subtract each pair of corresponding elements in sampling__Vector 1 and sampling__Vector 2 | Add all subtractions into sampling_EMD and display it | end |
|