get_rectangles: Function that tries to partition the matrix of integers into...

Description Usage Arguments Value

Description

Function that tries to partition the matrix of integers into a minimal set of rectangles.

Usage

1
get_rectangles(m, target_value = 1)

Arguments

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.

Value

Returns list of rectangles. Each rectangle is a list defined by x0, x1, y0 and y1.


adamryczkowski/rectpartitions documentation built on May 16, 2019, 7:21 a.m.