pix_vec: Generate pixel positions of rectangle in larger image

Description Usage Arguments Value Examples

Description

Generate pixel positions of rectangle in larger image

Usage

1
pix_vec(v = c(x0, y0, x1, y1, w, h), out = c("vector", "matrix"))

Arguments

v

A vector containing the start- and end-positions of the rectangles (x0, y0, x1, y1) and the width of the larger image (w)

Value

A vector or a matrix

Examples

1
2
pix_vec(v = c(2,2,5,5,6,8), "vector")
pix_vec(v = c(2,2,5,5,6,8), "matrix")

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