Description Usage Arguments Value
Function that tries to partition the matrix of integers into a minimal set of rectangles.
1 | get_rectangles(m, target_value = 1)
|
m |
Matrix of integer to partition. |
target_value |
Value to use as a marker. Defaults to "1". Any other value than that will be treated as the absense of marker. |
Returns list of rectangles. Each rectangle is a list defined by x0
, x1
, y0
and y1
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.