ColorCombine[{image1,image2,…}]
通过合并 imagei 中的通道序列,创建一个多通道图像.
ColorCombine[{image1,image2,…},colorspace]
合并表示由 colorspace 指定的颜色分量的图像.
ColorCombine
ColorCombine[{image1,image2,…}]
通过合并 imagei 中的通道序列,创建一个多通道图像.
ColorCombine[{image1,image2,…},colorspace]
合并表示由 colorspace 指定的颜色分量的图像.
更多信息
- ColorCombine 通常用于将多个单通道图像组合成多通道图像.
- ColorCombine[{image1,image2,…}] 通过将每个 imagei 的通道序列串接在一起创建含有这些通道的图像.
- ColorCombine 适用于 2D 或 3D 图像.
- 图像 {image1,image2,…} 必须含有相同的维数.
- ColorCombine[{image1,image2,…},colorspace] 返回一个指定 colorspace 的图像.
- 可给出以下 colorspace 规范:
-
"RGB" 红、绿、蓝 (RGBColor) "CMYK" 青色、品红色、黄色、黑色 (CMYKColor) "HSB" 色度、饱和度、亮度 (Hue) "XYZ" CIE XYZ 通道 (XYZColor) "LAB" CIE Lab 通道 (LABColor) "LCH" CIE LCH 通道 (LCHColor) "LUV" CIE LUV 通道 (LUVColor) - 对于要求有 n 个色彩通道的 colorspace,可以将 n 或 n+1 个通道合并,将第 n+1
个通道用作 alpha 通道. - 当我们把一个彩色图像与一个灰度级图像合并时,ColorCombine 创建了一个与 alpha 通道具有相同色彩空间的图像.
范例
打开所有单元 关闭所有单元基本范例 (2)
范围 (6)
ColorCombine[{[image], [image], [image]}, "RGB"]ColorCombine[{[image], [image], [image]}, "HSB"]ColorCombine[{[image], [image], [image], [image]}, "CMYK"]用所有支持的色彩空间渲染图像,将这些三通道图像的通道合并起来:
cs = {"RGB", "HSB", "LAB", "LCH", "LUV", "XYZ"};
TableForm[Table[ColorCombine[ColorSeparate[[image], in], out], {in, cs}, {out, cs}], ...]ColorCombine[{[image], [image], [image], [image]}, "RGB"]将 RGB 图像与单幅图像合并在一起,获取一个 RGBA 图像:
ColorCombine[{[image], [image]}, "RGB"]ColorCombine[{[image], [image]}]应用 (5)
显示针对每个通道的 GradientFilter:
ColorCombine[GradientFilter[#, 1]& /@ ColorSeparate[[image], "RGB"]]//ImageAdjustimg = [image];{l, a, b} = ColorSeparate[img, "LAB"];
ColorCombine[{ImageAdjust[l, 0.6], a, b}, "LAB"]i = [image];
res = CornerFilter[i]//ImageAdjust通过将结果添加到红色通道并从绿色和蓝色通道中减去它,以红色显示角点:
ColorCombine[{i + res, i - res, i - res}]用红外图像替换航空图像的红色通道,以突出显示生物量密度较高的区域:
rgb = [image];inf = [image];ColorCombine[{inf, ColorSeparate[rgb, "G"], ColorSeparate[rgb, "B"]}, "RGB"]将 alpha 通道添加到突出显示单个切片的 3D 图像中:
ColorCombine[{[image], [image]}]ColorCombine[{[image], [image]}]属性和关系 (2)
imgs = {[image], [image], [image]};ColorCombine[imgs]ImageColorSpace[%]ColorCombine[imgs, "RGB"]通过 ColorCombine 创建的图像具有 Interleaving->False:
ColorCombine[{[image], [image], [image]}]Options[%, Interleaving]巧妙范例 (2)
Map[ColorCombine, Permutations[ColorSeparate[[image]]]]i = [image];{c, m, y, k} = ColorSeparate[i, "CMYK"];Table[ColorCombine[{c, ImageAdjust[m, {0, 0, γ}], y, k}, "CMYK"], {γ, 1 / 2, 2, .5}]文本
Wolfram Research (2008),ColorCombine,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ColorCombine.html (更新于 2012 年).
CMS
Wolfram 语言. 2008. "ColorCombine." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2012. https://reference.wolfram.com/language/ref/ColorCombine.html.
APA
Wolfram 语言. (2008). ColorCombine. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ColorCombine.html 年
BibTeX
@misc{reference.wolfram_2026_colorcombine, author="Wolfram Research", title="{ColorCombine}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/ColorCombine.html}", note=[Accessed: 11-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_colorcombine, organization={Wolfram Research}, title={ColorCombine}, year={2012}, url={https://reference.wolfram.com/language/ref/ColorCombine.html}, note=[Accessed: 11-September-2026]}