locan.data.transform.bunwarpj.bunwarp#
- locan.data.transform.bunwarpj.bunwarp(locdata, matrix_path, pixel_size, flip=False)[source]#
Transform coordinates by applying a B-spline transformation as represented by a raw transformation matrix from BunwarpJ.
- Parameters:
locdata (
LocData
) – specifying the localization data on which to perform the manipulation.matrix_path (
str
|PathLike
[Any
]) – Path to file with a raw matrix from BunwarpJ.pixel_size (
tuple
[float
,float
]) – Pixel sizes used to determine transition matrix in ImageJflip (
bool
) – Flip locdata along x-axis before transformation
- Returns:
New localization data with transformed coordinates.
- Return type: