bbox_slice: Functions for horizontal and vertical slicing of bbox columns...

Description Usage Arguments Value Examples

Description

Functions for horizontal and vertical slicing of bbox columns These functions are not vectorized and should be used to compute

Usage

1
2
3
4
5
bbox_slice_x(bbox, x)

bbox_slice_y(bbox, y)

bbox_slice_xy(bbox, x, y)

Arguments

bbox

string or character vector of bbox'es

x, y

coordinates to sclice the bouding box at

Value

list of bbox'es appliccable for particular split

Examples

1
2
3
4
5
6
7
bbox_slice_x("0 0 100 200", 80)
bbox_slice_x(c("0 0 100 200", "100 100 200 200"), c(80, 150))

bbox_slice_y("0 0 100 200", 120)
bbox_slice_y(c("0 0 100 200", "100 100 200 200"), c(120,150))
bbox_slice_xy("0 0 100 200", 50, 100)
bbox_slice_xy(c("0 0 100 200", "100,100, 200, 200"), c(50, 150), c(100, 150))

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