Blur Gaussian π¦βπ₯
The soft blur that detection pipelines want before Canny
- nparrays
- dst
Gaussian blur is the default answer to "this image is too noisy to detect anything." Where the pack's plain Blur node averages flatly, Gaussian weights each neighbor by distance from the center, so it smooths without that harsh "smeared window" look. It's the blur you run before Canny - the node's own description for Canny says it explicitly: usually needs Gaussian blur first.
The inputs
nparrays: an NPARRAY from To Nparray.ksize_x(default 3) andksize_y(default 1): kernel size, both must be odd. Same convention as the pack's plain Blur -ksize_y = 1means "use the same as width," so the default is a symmetric 3Γ3.sigma_xandsigma_y(defaults 0): the standard deviations. The 0 default is a feature, not a bug - leave both at 0 and OpenCV computes sensible sigmas from the kernel size. Setsigma_xand leavesigma_yat 0 and it mirrors. Only set both when you want anisotropic softening.borderType: edge pixel extrapolation (DEFAULT / CONSTANT / REPLICATE / WRAP).
How to actually use it
The pipeline that never goes out of style: load an architectural or mechanical photo β To Nparray β Gaussian Blur β Canny β Hough Lines. The blur's job is to kill the sensor or compression noise so Canny's hysteresis doesn't invent edges out of random brightness jumps. Start at a 3Γ3 or 5Γ5 kernel and raise it only if edges look spaghetti-fied - a big Gaussian will start erasing the thin lines you actually care about.
It's also the honest softening filter for "I want the image to look less harshly sharp" without the boxy artifacts of a plain blur.
Output
dst, the blurred NPARRAY - same shape, ready for the next OpenCV node or back through To Image for a preview.
Install
ComfyUI Manager β search ComfyUI-ArchiGraph, or:
cd ComfyUI/custom_nodes
git clone https://github.com/vincentfs/ComfyUI-ArchiGraph
Restart and run the pack's install script once. OpenCV is the only real dependency; no model downloads.
Gotchas
ksize_y = 1is shorthand for "same as width," not a 1-pixel kernel.- Sigma 0 means "auto from kernel size." If you raise sigma manually without touching ksize, you can blur more than the kernel width suggests - which sometimes looks great and sometimes just wipes detail. Tune both together.
- CPU-only, like the rest of the pack's OpenCV set.
If there's one blur in this pack to reach for by default, this is it - it's the version that makes the next detection node look smart.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| nparrays | NPARRAY | β | |
| ksize_x | INT | 33β99 | Kernel width. Must be odd and greater than 1. |
| ksize_y | INT | 11β99 | Kernel height. Must be odd and greater than 1. Set to 1 to use same as width. |
| sigma_x | FLOAT | 0.00 | Gaussian kernel standard deviation in X direction. |
| sigma_y | FLOAT | 0.00 | Gaussian kernel standard deviation in Y direction; if sigmaY is zero, it is set to be equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height, respectively. |
| borderType | COMBO | DEFAULT | Pixel extrapolation method |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| dst | NPARRAY | β |