spatialdata-io icon indicating copy to clipboard operation
spatialdata-io copied to clipboard

z_index = 0 for polygons in MERSCOPE

Open LucaMarconato opened this issue 10 months ago • 3 comments

          This commit seems to solve my issue reported here: https://github.com/scverse/spatialdata-io/issues/208

Is there a reason why only polygons from z_index = 0 are kept? By default the reader select plane z=3.

Originally posted by @MathieuBo in https://github.com/scverse/spatialdata-io/issues/207#issuecomment-2358626502

LucaMarconato avatar Jan 05 '25 23:01 LucaMarconato

@quentinblampey do you have any thought on this? (please see the linked discussion).

LucaMarconato avatar Jan 05 '25 23:01 LucaMarconato

The Merscope on-board software only performs segmentation on one z-level and saves these polygons for z-indeces 0-6, using the vizgen postprocessing software users have the ability to segment every z-level separately.

I think it would make the most sense to default to the same z-level for polygons and images and give the user the option to choose which z-levels should be loaded.

pakiessling avatar Jan 06 '25 12:01 pakiessling

z_index = 0 was used because the polygons are duplicated for all z-indices. I was not aware of the possibility of segmenting every z-level using VPT, thanks for letting us know @pakiessling! In that case, I agree that it makes sense to let the user decide

quentinblampey avatar Jan 06 '25 14:01 quentinblampey