baby.speed_tests.get_traps_timepoint

baby.speed_tests.get_traps_timepoint(img, trap_locs, tile_size=81)

Extract tiles from an image

Parameters
  • img – ndarray with shape (image_width, image_height, …) An image from which to extract tiles. The first two dimensions must be x, y coordinates.

  • trap_locs – ndarray with shape (n_traps, 2) Trap centres (rows) specified in x, y coordinates (columns).

  • tile_size – width of (square) tile to be centered at each specified trap location.