imagecat.operator.blur module

Operators for blurring images.

imagecat.operator.blur.gaussian(graph, name, inputs)[source]

Blur an image using a Gaussian kernel.

Parameters
  • graph (Graph, required) – Graph that owns this task.

  • name (hashable object, required) – Name of the task executing this function.

  • inputs (Named Inputs, required) – Inputs for this operator.

Named Inputs
  • image (imagecat.data.Image, required) – Image containing layer to be blurred.

  • layer (str, optional) – Name of the layer to be blurred. Default: None.

  • sigma ((x, y) tuple, required) – Width of the gaussian kernel in pixels along each dimension.

Returns

image – A copy of the input image with some layers blurred.

Return type

imagecat.data.Image