工程需要,有时要测照片内物体所占像素点大小,需要用到软件测距,此代码给出测距实现办法,需安装matlab工具,执行,代码如下: clcclearI=imshow('190.jpg')d=imdistline