navigate.tools.multipos_table_tools.calc_num_tiles
- navigate.tools.multipos_table_tools.calc_num_tiles(dist, overlap, roi_length)
Calculate the number of tiles to divide a space dist along a single axis with an ROI of size roi_length and a fractional overlap between ROIs of overlap.
Watch out! This has no indication of what the tiles should actually look like (no information about sign, etc.).
- Parameters:
dist (float) – Total distance to tile with ROIs. A measure from the closed boundaries of the region to tile (e.g. left side of the first tile all the way to the right side of the last tile for x-dimension low -> high). Positive.
overlap (float) – Fraction of roi_length that overlaps in each tile. Value between 0 and 1.
roi_length (float) – The length of the ROI along this dimension. Positive.
- Returns:
num_tiles – Number of tiles needed to cover this distance.
- Return type:
int