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

# Morphology - ComfyUI Built-in Node Documentation

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

形态学节点对图像应用各种形态学运算，这些运算是一种用于处理和分析图像中形状的数学方法。该节点可执行腐蚀、膨胀、开运算、闭运算等操作，并通过可自定义的内核大小来控制效果强度。

## 输入

| 参数     | 描述                      | 数据类型   | 是否必填 | 范围                                                                                                            |
| ------ | ----------------------- | ------ | ---- | ------------------------------------------------------------------------------------------------------------- |
| `图像`   | 待处理的输入图像                | IMAGE  | 是    | -                                                                                                             |
| `操作`   | 要应用的形态学运算（默认值："erode"）  | STRING | 是    | `"erode"`<br />`"dilate"`<br />`"open"`<br />`"close"`<br />`"gradient"`<br />`"bottom_hat"`<br />`"top_hat"` |
| `核心大小` | 结构元素内核的大小（默认值：3）。必须为奇数。 | INT    | 是    | 3-999                                                                                                         |

## 输出

| 输出名称 | 描述              | 数据类型  |
| ---- | --------------- | ----- |
| `图像` | 应用形态学运算后处理完成的图像 | IMAGE |

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

***

**Source fingerprint (SHA-256):** `7f6224a0e58fbb7263267b377394e119c6f8d65d16af4ce492ca9504654af7b4`
