Bayer-Group / tiffslide

TiffSlide - cloud native openslide-python replacement based on tifffile
Other
84 stars 12 forks source link

Ventana BIF overlap not considered #37

Open ap-- opened 2 years ago

ap-- commented 2 years ago
ts_slide = TiffSlide('OS-2.bif'), os_slide = OpenSlide('OS-2.bif')

    def test_level_dimensions(ts_slide, os_slide):
>       assert ts_slide.level_dimensions == os_slide.level_dimensions
E       AssertionError: assert ((128000, 829...0, 2600), ...) == ((114943, 763...2, 2386), ...)
E         At index 0 diff: (128000, 82960) != (114943, 76349)
E         Full diff:
E           (
E         -  (114943, 76349),
E         -  (57472, 38175),
E         -  (28736, 19088),
E         -  (14368, 9544),...
E         
E         ...Full output truncated (20 lines hidden), use '-vv' to show

Fixing this requires two steps:

Notes:

(1) we get a list of offsets between pairs of tiles with a confidence estimate from the metadata. These would have to be fed into a solver that returns optimal absolute coordinates for each tile.

(2) the same translating store could be used to implement Mirax support. #33