tiffslide icon indicating copy to clipboard operation
tiffslide copied to clipboard

Ventana BIF overlap not considered

Open ap-- opened this issue 3 years ago • 0 comments

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:

  • [ ] (1) Generating absolute offset coordinates for each tile from the regular grid in the Ventana file
  • [ ] (2) A zarrstore that translates irregular positioned chunks with overlap into a regular grid

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

ap-- avatar May 13 '22 12:05 ap--