aliby.tile.traps

A set of utilities for dealing with ALCATRAS traps

Functions

half_ceil(x, tile_size)

half_floor(x, tile_size)

identify_trap_locations(image, trap_template)

Identify the traps in a single image based on a trap template, which requires the trap template to be similar to the image (same camera, same magification - ideally the same experiment).

segment_traps(image, tile_size[, downscale, ...])

Uses an entropy filter and Otsu thresholding to find a trap template, which is then passed to identify_trap_locations.

stretch_image(image)