Corregistrator
siapy.transformations.corregistrator
¶
map_affine_approx_2d
¶
map_affine_approx_2d(
points_ref: NDArray[floating[Any]],
points_mov: NDArray[floating[Any]],
) -> NDArray[floating[Any]]
Affine transformation
Source code in siapy/transformations/corregistrator.py
18 19 20 21 22 23 24 |
|
affine_matx_2d
¶
affine_matx_2d(
scale: tuple[float, float] | Sequence[float] = (1, 1),
trans: tuple[float, float] | Sequence[float] = (0, 0),
rot: float = 0,
shear: tuple[float, float] | Sequence[float] = (0, 0),
) -> NDArray[floating[Any]]
Create arbitrary affine transformation matrix
Source code in siapy/transformations/corregistrator.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
align
¶
align(
pixels_ref: Pixels
| DataFrame
| Iterable[CoordinateInput],
pixels_mov: Pixels
| DataFrame
| Iterable[CoordinateInput],
*,
eps: float = 1e-06,
max_iter: int = 50,
plot_progress: bool = False,
) -> tuple[NDArray[floating[Any]], NDArray[floating[Any]]]
Align interactive corresponding points
Source code in siapy/transformations/corregistrator.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|
transform
¶
transform(
pixels: Pixels | DataFrame | Iterable[CoordinateInput],
transformation_matx: NDArray[floating[Any]],
) -> Pixels
Transform pixels
Source code in siapy/transformations/corregistrator.py
106 107 108 109 110 111 112 113 |
|