【Mathematica入门】图像填充变换

时间:2024-10-14 10:40:39

1、用FillingTransform命令作用于原图,得到的是一张白板:FillingTransform[img]

【Mathematica入门】图像填充变换

3、这样,可以去掉图片的白色背景:FillingTransform[img]-img

【Mathematica入门】图像填充变换

5、对反色图片进行填充变换:FillingTransform[1-img]

【Mathematica入门】图像填充变换
© 手抄报圈