smlmlp.registrate_locs_affine module

smlmlp.registrate_locs_affine(x, y, ch, fr, /, shape, ref_pix=1.0, match_radius_nm=80.0, min_pairs=30, max_points_per_channel=20000, ransac_thresh_nm=20.0, ransac_confidence=0.995, ransac_max_iters=5000, *, cuda=False, parallel=False)[source]

Estimate redundant pairwise affine transforms from localizations.

The function estimates one affine transform per channel pair from matched localization coordinates. Nearest-neighbor matches are constrained to points from the same frame.

It returns pairwise transform parameters using the same convention as registrate_ecc_affine so outputs can be passed to registrate_solve_redundant_affine.