Research Article

Image Matching Using Dimensionally Reduced Embedded Earth Mover’s Distance

Pseudocode 2

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