scverse / scverse/spatialdata

Option to delay scale_factors downsampling along Z dimension for 3D images

Open
#954 0 comments 1 reaction 2 assignees View on GitHub

@LucaMarconato is already working on this.

Since Jul 11, 2025.

Dominant language
Python
Stars
394
Forks
95
Avg merge
4d 3h
Merged PRs (30d)
7

Description

Is your feature request related to a problem? Please describe.

Given 3D image with original TCZYX shape [ 1, 12, 194, 3181, 4045 ], I want the following multiscales:

  • 0: [ 1, 12, 194, 3181, 4045 ]
  • 1: [ 1, 12, 194, 1590, 2022 ]
  • 2: [ 1, 12, 194, 795, 1011 ]
  • 3: [ 1, 12, 194, 398, 506 ]
  • 4: [ 1, 12, 194, 199, 253 ]
  • 5: [ 1, 12, 97, 99, 126 ]
  • 6: [ 1, 12, 48, 50, 63 ]
  • 7: [ 1, 12, 24, 25, 32 ]

Describe the solution you'd like

In Image3DModel.parse, an option to use a scale_factor of 2 along X and Y dims only, until min(X_size, Y_size) is less than original Z_size.

cc @EricMoerthVis @alexandra27i this is relevant for the 3D rendering, please feel free to comment

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.