【Mathematica入门】图像颜色量化
1、用三种颜色显示图像:
ColorQuantize[img,3]

2、用两种颜色显示图像:
ColorQuantize[img,2]

3、用制定的三种颜色显示图像:
ColorQuantize[img,{Black,White,Green}]

4、ColorQuantize[img,{Black,White,Green,Red,Blue}]

5、防抖动:
ColorQuantize[img,{Black,White,Green,Red,Blue},Dithering->False]

6、用36种颜色显示图像,并防抖动:
ColorQuantize[img,36,Dithering->False]

7、与原图相减的效果。


声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:136
阅读量:43
阅读量:153
阅读量:188
阅读量:172