Skip to content

Add convenience property to get the coordinates from the Image object #45

Description

@simonrw

This can be a shortcut for those who do not want to deal with the multiple lines of getting the shifts. For example instead of:

shifts = d.compute_offset(ref)
# do something with shifts.x and shifts.y

it could be:

x, y = d.compute_offset(ref).shifts

or even:

x, y = d.compute_shifts(ref)
# which calls compute_offset(ref).shifts under the hood

TODO: better naming

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions