local2global.example.rand_shift_patches

rand_shift_patches(alignment_problem: local2global.utils.AlignmentProblem, shift_scale=100.0)[source]

randomly shift patches by adding a normally distributed vector (used for testing)

Parameters
  • alignment_problem (AlignmentProblem) – Alignment problem to be transformed

  • shift_scale (float) – Standard deviation for shifts

Returns

np.ndarray of true shifts