> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/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.

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

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

## 输入参数

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

## 输出结果

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