1、 先显示彩色图片TU = imread('房子.jpg')imshow(TU)
3、 自动设置二值化的阀值,在命令窗口输入:thresh = graythresh(T)
4、 将黑白图片转化为二值图并显示出来