local2global.example.rand_scale_patches

rand_scale_patches(alignment_problem: local2global.utils.AlignmentProblem, min_scale=0.01)[source]

randomly scale patches of alignment problem and return the true scales (used for testing)

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

  • min_scale (float) – minimum scale factor (scale factors are sampled log-uniformly from the interval [min_scale, 1/min_scale])

Returns

list of true scales