ColorDetect
ColorDetect[image,cspec]
返回一个用指定颜色区域中的颜色表示 image 中区域的掩模图像.
更多信息
- ColorDetect 通常用来指定含有颜色区域中的像素的图像掩模.
- 颜色指定 cspec 的可能设置包括:
-
color 接近 color 的颜色 ColorsNear[color,d,…] 明确指定接近 color 的颜色
范例
打开所有单元 关闭所有单元基本范例 (1)
用 ColorDetect 计算图像区域:
ColorDetect[[image], RGBColor[0.40541765226970417, 0.5989489462507049, 0.9031254989108909]]SetAlphaChannel[[image], ColorNegate[%]]范围 (3)
ColorDetect[[image], RGBColor[0.6989759246143588, 0.818080938661109, 0.9248021130489484]]ColorDetect[[image], ColorsNear[RGBColor[0.6989759246143588, 0.818080938661109, 0.9248021130489484], .2]]ColorDetect[[image], ColorsNear[RGBColor[0.6989759246143588, 0.818080938661109, 0.9248021130489484], .05, "DeltaL"]]文本
Wolfram Research (2019),ColorDetect,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ColorDetect.html.
CMS
Wolfram 语言. 2019. "ColorDetect." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/ColorDetect.html.
APA
Wolfram 语言. (2019). ColorDetect. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ColorDetect.html 年
BibTeX
@misc{reference.wolfram_2026_colordetect, author="Wolfram Research", title="{ColorDetect}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/ColorDetect.html}", note=[Accessed: 13-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_colordetect, organization={Wolfram Research}, title={ColorDetect}, year={2019}, url={https://reference.wolfram.com/language/ref/ColorDetect.html}, note=[Accessed: 13-September-2026]}