Module contours

Module contours 

Source
Expand description

Specialized utilities for working with contours found by imageproc::contours.

This module provides functions for filtering, sorting, and analyzing the hierarchy of contours, complementing the core functionality in imageproc.

Functionsยง

remove_hypotenuse_in_place
Filters a vector of contours in-place based on shape properties.
sort_by_direct_children_count_owned
Counts the number of direct child contours for each contour by consuming the input vector, and returns pairs of (Contour, count), sorted by the count in descending order.
sort_by_perimeters_owned
Calculates the perimeter of each contour and sorts them in descending order.