acia.segm.processor.canny#

Canny edge detection based segmentation processor

class acia.segm.processor.canny.CannySegmentationProcessor[source]#

Bases: SegmentationProcessor

Segmentation processor using Canny edge detection.

This processor uses OpenCV’s Canny edge detection algorithm to identify cell boundaries in images, then extracts contours from the edge map.

Parameters:
  • canny_low (int) – Lower threshold for Canny edge detection. Default: 50

  • canny_high (int) – Upper threshold for Canny edge detection. Default: 150

  • min_area (float) – Minimum contour area in pixels. Contours smaller than this are filtered out. Default: 50

  • max_area (float) – Maximum contour area in pixels. Contours larger than this are filtered out. Default: 100000

  • blur_kernel (int) – Size of Gaussian blur kernel (must be odd). Default: 5

__init__(canny_low=50, canny_high=150, min_area=50, max_area=100000, blur_kernel=5)[source]#

Initialize Canny edge detection processor with configurable parameters.

Parameters: