The Haudorff distance between the two curves is a measure of disimilarity bewteen those two. Generally, used in image processing for template matching.
Hemanth (2020). hausdorffDist(a,b) (https://www.mathworks.com/matlabcentral/fileexchange/56336-hausdorffdist-a-b), MATLAB Central File Exchange. Retrieved .
The concept used in the coding was already mentioned in a post by Salim Arslan. But, I did not know at the time of the upload. So, I am acknowledging it through this update.