Skip to contents

Expects first column is an X coordinate and second is Y. Returns a logical vector indicating which coordinates are in bounds

Usage

flexible_coordinate_subset(coords, i, j, inv = F)

Arguments

coords

Coordinate matrix

i

Specifies subsetting in the X axis.

  • If i is a scalar, coordinates less than or equal to i are included

  • If i is a 2-length vector, the elements will be treated as min and max of the subset window, respectively

  • If i is a range, any coordinates within the range will be included

j

Same as i

inv

Whether to invert the y axis -- commonly done for microscopy image data.

Value

Logical

Scroll to top