spacipy.Gem.relocation

Gem.relocation(x=None, y=None, canvas=None, width=None, height=None, rotation=0, return_affine=False)
Re-locate the object coordinates with
  • a target center coordinate

  • a target canvas (numpy ndarray matrix)

  • a target shape

Parameters:
  • x (int) – coordinates of the target center

  • y (int) – coordinates of the target center

  • canvas (target canvas)

  • width (int) – pass

  • height (int) – pass

  • rotation (int) – clock wise rotation degree

  • return_affine (bool, default False) – Whether or not to return the affine matrix dict