> ## 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.

# ImageColorToMask - ComfyUI Built-in Node Documentation

> Complete documentation for the ImageColorToMask node in ComfyUI. Learn its inputs, outputs, parameters and usage.

`ImageColorToMask` 节点旨在将图像中的指定颜色转换为遮罩。它处理一张图像和一个目标颜色，生成一个突出显示该指定颜色的遮罩，便于执行基于颜色的分割或对象隔离等操作。

## 输入

| 参数   | 描述                                                      | 数据类型    |
| ---- | ------------------------------------------------------- | ------- |
| `图像` | `图像` 参数表示要处理的输入图像。它对于确定图像中与指定颜色匹配的区域至关重要，这些区域将被转换为遮罩。   | `IMAGE` |
| `颜色` | `颜色` 参数指定图像中要转换为遮罩的目标颜色。它在识别最终遮罩中需要突出显示的特定颜色区域方面起着关键作用。 | `INT`   |

## 输出

| 参数     | 描述                                                      | 数据类型   |
| ------ | ------------------------------------------------------- | ------ |
| `mask` | 输出是一个遮罩，突出显示输入图像中与指定颜色匹配的区域。此遮罩可用于进一步的图像处理任务，例如分割或对象隔离。 | `MASK` |

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