MATLAB: How to find euclidean distance

euclidean distanceimage procesingImage Processing Toolbox

Plz help me to find euclidean distance between two pixels within same image without using direct matlab command

Best Answer

pix_1 = [p11,p12];
pix_2 = [p21,p22];
distance = sqrt( (p21-p11)^2 + (p22-p12)^2 );
Related Question