OpenCV euclidean distance between two vectors
euclidean-distance, matrix, opencv, vector
Solution
yes.
Mat a,b; // num of rows/cols/channels does not matter, they just have to be equal for both
double dist = norm(a,b,NORM_L2);
Problem
I want to calculate the euclidean distance between two vectors (or two Matrx rows, doesn't matter). Is there a good function for that in OpenCV?