Input/output vector of rectangles. Output vector includes retained and grouped rectangles. (The Python list is not modified in place.)
Minimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it.
Relative difference between sides of the rectangles to merge them into a group.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Generated using TypeDoc
The function is a wrapper for the generic function partition . It clusters all the input rectangles using the rectangle equivalence criteria that combines rectangles with similar sizes and similar locations. The similarity is defined by eps. When eps=0 , no clustering is done at all. If
$\\texttt{eps}\\rightarrow +\\inf$
, all the rectangles are put in one cluster. Then, the small clusters containing less than or equal to groupThreshold rectangles are rejected. In each other cluster, the average rectangle is computed and put into the output rectangle list.