> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# 拆分图像通道 - ComfyUI Built-in Node Documentation

> 将图像拆分为红、绿、蓝通道，并将 alpha 通道作为掩码返回。每个颜色输出都是三通道灰度图像，因此可像普通图像一样预览和保存。

将图像拆分为红、绿、蓝通道，并将 alpha 通道作为掩码返回。每个颜色输出都是三通道灰度图像，因此可像普通图像一样预览和保存。可用它检查或编辑单个通道，或从带有 alpha 通道的图像中提取透明度：通过 Load Image 加载的图像没有 alpha 通道，因为其 alpha 会作为单独的 `MASK` 输出暴露。

## 输入

| 参数 | 描述 | 数据类型 | 必需 | 范围 |
| - | - | - | - | - |
| `image` | 要拆分的图像。单通道（灰度）输入会被扩展，使三个颜色输出都携带相同数据。 | IMAGE | 是 | - |

## 输出

| 输出名称 | 描述 | 数据类型 |
| - | - | - |
| `red` | 红色通道，作为三通道灰度图像。 | IMAGE |
| `green` | 绿色通道，作为三通道灰度图像。 | IMAGE |
| `blue` | 蓝色通道，作为三通道灰度图像。 | IMAGE |
| `alpha` | alpha 作为掩码，其反转方式与 Load Image 相同，因此 1 标记完全透明的像素。没有 alpha 通道的图像会返回全零掩码。 | MASK |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/SplitImageChannels/zh.md)

***

**Source fingerprint (SHA-256):** `0f300d2e86c74e856001eb82da26c871c94c1dae5ec73a4504ca258420fbcf52`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.