how to calculate euclidean distance in image pixels from a specific point in OpenCV C++?

asked 2015-10-15 02:46:50 -0600

I have Calculated YCbCr value of hand in OpenCV. Now i wish to find Euclidean Distance from the above calculated values, in such a way: D={(Cb(i,j),Cr(i,j)),(Cbmin,Crmin)} Both Cbmin and Crmin have been calculated. Anyone can help please?

edit retag flag offensive close merge delete

Comments

1

_

Point p(Cb(i,j),Cr(i,j)),pmin((Cbmin,Crmin);
norm(p-pmin);

docs

LBerger gravatar imageLBerger ( 2015-10-15 04:06:17 -0600 )edit