网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

【Mathematica】Graphics和Image的一些区别

时间:2024-10-15 15:21:38

1、先画图:a={0., 0.0833333, 0.166667, 0.333333, 0.5, 0.666667, 0.833333, 1};

【Mathematica】Graphics和Image的一些区别

3、再操作一下:pic = ImageCrop[img]

【Mathematica】Graphics和Image的一些区别

5、img是Graphics,那么,img乘以一个正整数,效果如下:img*2000

【Mathematica】Graphics和Image的一些区别

7、Graphics经过栅格化,可以变成Image:

【Mathematica】Graphics和Image的一些区别

9、检测img的边界:

【Mathematica】Graphics和Image的一些区别

11、与fig的边界图对比一下:EdgeDetect[fig]

【Mathematica】Graphics和Image的一些区别
© 一点资料