图像处理-图像增强 图像处理的小型存储库,在丰提斯大学第三周进行了编码 内容 读取GIF图片 [img, map\] = imread( 'week3\\img1.gif', 1); [back, map2\] = imread( "week3\\son2.gif", 1); 转换为灰度图像 img2 = ind2gray(img, map); back2 = ind2gray(back, map2); 应用偏移并获取图像之间的差异 back2 = back2 - 100; imgfinal = img2 - back2; 申请门槛 imgfinal2 = imbinarize(imgfinal, 'adaptive', 'ForegroundPolarity','dark','Sensitivity',0.5); montage({img2, imgfinal, imgfinal2},