From: yang on
i need to compute the euclidian distance for some images.
i have figure out the code to compute the euclidian distance for two images.
bt now, my task was to compute the average and maximum euclidian distance between the images in the same categories.
i hav 9 categories in total, and each categories consist of 100++ images.
how can i do this in matlab.
i know that i need some loop to perform that but i dun noe how to code it .
anyone can help ?
thx
From: Image Analyst on
yang:
What do you mean the Euclidean distance "between" or "for" two images? There is bwdist() in the Image Processing Toolbox that computes the Euclidean Distance Transform of a single binary image. Is that what you mean? Or there are other distances between two objects in a single image, such as the Hausdorff Distance (imageanalyst(a)gmail.com). Or maybe you might be interested in the Mahalanobis Distance (http://en.wikipedia.org/wiki/Mahalanobis_distance).

Coding up a for loop to read in pairs of images is trivial. If you're confused about this, see the FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_process_a_sequence_of_files.3F
-ImageAnalyst