Corregistrator
siapy.transformations.corregistrator
¶
map_affine_approx_2d
¶
map_affine_approx_2d(points_ref: ndarray, points_mov: ndarray) -> ndarray
Affine transformation
PARAMETER | DESCRIPTION |
---|---|
points_ref |
TYPE:
|
points_mov |
TYPE:
|
Source code in siapy/transformations/corregistrator.py
16 17 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
Create arbitrary affine transformation matrix
PARAMETER | DESCRIPTION |
---|---|
scale |
|
trans |
|
rot |
TYPE:
|
shear |
|
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, pixels_mov: Pixels, *, eps: float = 1e-06, max_iter: int = 50, plot_progress: bool = False) -> tuple[ndarray, ndarray]
Align interactive corresponding points
PARAMETER | DESCRIPTION |
---|---|
pixels_ref |
TYPE:
|
pixels_mov |
TYPE:
|
eps |
TYPE:
|
max_iter |
TYPE:
|
plot_progress |
TYPE:
|
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, transformation_matx: ndarray)
Transform pixels
PARAMETER | DESCRIPTION |
---|---|
pixels |
TYPE:
|
transformation_matx |
TYPE:
|
Source code in siapy/transformations/corregistrator.py
106 107 108 109 110 111 112 |
|