value means how different are both objects, it represents the distance between two moments between two figures. the smaller, the more similar the two objects. The threshold can be used to perform this correspondence: if the output value is less than the threshold value, two objects are the same or both objects are different. As for the choice of the threshold, it depends. You can use some examples to learn the threshold. I highly recommend that you normalize objects in images with the same size. This will give you better accuracy.
source share