Skip to content

Pass scale instead of coordinate transformations #532

Description

@jo-mueller

In the current writing logic, the user has to calculate the coordinate_transformations themselves for each pyramidal layers before passing them on to the write_image function. I think it's much easier to simply pass a scale argument as a per-axis dict (i.e., {"z": 0.5, "y": 0.2, "x": 0.2}) and then just auto-calculate all the coordinate transformations for every scale level.

The default behavior for unpassed coordinatetransformations can stay as it is.

Working plan:

  • add scale argument to kwargs of write_image, write_labels functions
  • deprecate coordinate_transformations argument of these functions

cc @will-moore
cc @melonora : I think this is also orthogonal to your efforts regarding improving passage of arguments to zarr

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions