MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]如何知道图片任意两点之间的距离(像素差) (https://www.labfans.com/bbs/showthread.php?t=4115)

misscool1656 2008-08-11 20:10

[求助]如何知道图片任意两点之间的距离(像素差)
 
如何知道图片任意两点之间的距离(像素差)

编程实现 有例案吗?
给个思路也行~ 如果是斜线的话怎么实现:lovely:

misscool1656 2008-08-13 20:12

回复: [求助]如何知道图片任意两点之间的距离(像素差)
 
有人看吗~

mikle 2008-08-17 18:08

回复: [求助]如何知道图片任意两点之间的距离(像素差)
 
[QUOTE=misscool1656;14667]有人看吗~[/QUOTE]


应该不难哈

xmuhjh 2008-08-18 11:12

回复: [求助]如何知道图片任意两点之间的距离(像素差)
 
知道第一点像素坐标(x1,y1)
第二点像素坐标(x2,y2)
两点间的像素距离为:
distant=sqrt((x1-x2)^2+(y1-y2)^2)


所有时间均为北京时间。现在的时间是 13:50

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.