smlmlp.transform_locs module

smlmlp.transform_locs(x, y, ch, channels_locs_transform_matrices, *, cuda=False, parallel=False)[source]

Transform localizations into aligned coordinates.

Parameters:
  • x (array-like) – Localization coordinates in non-aligned coordinates.

  • y (array-like) – Localization coordinates in non-aligned coordinates.

  • ch (array-like) – One-based channel identifiers used to select transform matrices.

  • channels_locs_transform_matrices (array-like) – Matrices defined from non-aligned to aligned coordinates.

  • cuda (bool, optional) – Execution options accepted by all analysis functions.

  • parallel (bool, optional) – Execution options accepted by all analysis functions.

Returns:

  • x_t, y_t (ndarray) – Transformed coordinates.

  • info (dict) – Empty diagnostics dictionary.