rect_overlap: Calculates the overlap of rectangles in an image

Description Usage Arguments Value Examples

Description

Calculates the overlap of rectangles in an image

Usage

1
2
rect_overlap(coord.list = list(c(x01, y01, x11, y11), ..., c(x0n, y0n,
  x1n, y1n)), compress = 100)

Arguments

coord.list

list of coordinates for the rectangles

compress

number of compression

Value

A dataframe

Examples

1
2
3
4
5
6
rect_overlap(coord.list = list(c(2,2,5,5), c(3,3,7,7), c(2,3,6,6)), compress = 0)

# check correctness
c1 <- pix_vec(c(2,2,5,5,10))
c2 <- pix_vec(c(3,3,7,7,10))
length(which(c1 %in% c2)) / length(c1)

M2UCT/RFjobart documentation built on May 7, 2019, 9:18 p.m.