Skip to content

denoise_gaussian_2d

Separable isotropic Gaussian smoothing of ctx.image.

Category Preprocessing (2-D image)
Backend scipy - implemented here on top of scipy primitives
Version 1.0.0
Reads ctx.image (an ImageFrame)
Writes image

scipy.ndimage.gaussian_filter(sigma), default mode 'reflect'. Isotropic — the same σ is applied to rows and columns. For anisotropic smoothing, pass a tuple via the underlying scipy API directly.

Parameters

Parameter Default Required Description
sigma 0.0 - Gaussian σ in pixels (isotropic). 0 = no-op.

Use it

from spectro_kernel import run_algorithm

output = run_algorithm("denoise_gaussian_2d", ctx, {
    "sigma": 0.0
})

The CLI loads a single 1-D spectrum with --input; this algorithm needs ctx.image (an ImageFrame). Run it from Python or as a step of a pipeline preset.

{
  "tool": "denoise_gaussian_2d",
  "arguments": {
    "session_id": "<session_id>",
    "params": {
      "sigma": 0.0
    }
  }
}

Every algorithm is an MCP tool of the same name; describe_algorithm returns this page's metadata as JSON.

References

  • Lindeberg 1994, Scale-Space Theory in Computer Vision (Kluwer).
  • scipy.ndimage.gaussian_filter — separable Gaussian implementation.