find_overlap¶
tiatoolbox.utils.image.find_overlap
- find_overlap(read_location, read_size, image_size)[source]¶
Find the part of a region which overlaps the image area.
- Parameters
- Returns
Bounds of the overlapping region.
- Return type
Examples
>>> from tiatoolbox.utils.image import find_overlap >>> loc, size = (-5, -5), (10, 10) >>> find_overlap(loc, size, (5, 5))