这个用opencv很好做,但是matlab的话我不知道有没有现成的函数希望这个对你有帮助[图像]Canny检测的Matlab实现(含代码):https://blog.csdn.net/humanking7/article/details/46606791