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

# ThresholdMask - ComfyUI Built-in Node Documentation

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

ThresholdMask 节点通过应用阈值将掩码转换为二值掩码。它将输入掩码中的每个像素与指定的阈值进行比较，并创建一个新掩码，其中高于阈值的像素变为 1（白色），低于或等于阈值的像素变为 0（黑色）。

## 输入

| 参数   | 描述              | 数据类型  | 是否必填 | 范围        |
| ---- | --------------- | ----- | ---- | --------- |
| `遮罩` | 待处理的输入掩码        | MASK  | 是    | -         |
| `值`  | 二值化的阈值（默认值：0.5） | FLOAT | 是    | 0.0 - 1.0 |

## 输出

| 输出名称 | 描述             | 数据类型 |
| ---- | -------------- | ---- |
| `遮罩` | 经过阈值处理后的二值掩码结果 | MASK |

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

***

**Source fingerprint (SHA-256):** `5c61433c05ef8106d928306b64035078e7598605512f20aaf992255f7b166456`
