bbox_predicates: Predicate functions for matching bboxes These functions can...

Description Usage Arguments Value Examples

Description

Predicate functions for matching bboxes These functions can check whether intersection operation on bbox objects returns non-NA result

Usage

1
bbox_intersects(bbox, bbox2 = NULL)

Arguments

bbox

character vector of bounding boxes to perform operation on

bbox2

optional character vector of bounding boxes to element-wise aggregation with bbox. If specified, needs to be length 1 or equal in length to bbox.

Value

logical value of whether or not the pair of bboxes intersect

Examples

1
2
bbox_intersects(c("5 1 7 3", "2 4 6 8")) # should return FALSE
bbox_intersects("5 1 7 3", "2 2 6 8") # should return TRUE

dmi3kno/hocr documentation built on April 27, 2020, 10:39 a.m.