histomicstk.filters.edge

This package contains functions to enhance edges in images.

histomicstk.filters.edge.gaussian_grad(im_input, sigma)[source]

Performs smoothing with derivative gaussian kernel.

Uses separable convolution to simultaneously smooth and calculate the gradient of a grayscale image.

Parameters:
  • im_input (array_like) – An intensity image.

  • sigma (double) – Standard deviation of smoothing kernel used in gradient calculation.

Returns:

  • dx (array_like) – An intensity image of the X gradient component.

  • dy (array_like) – An intensity image of the Y gradient component.

Notes

Return values are returned as a namedtuple