recon_surf.align_points¶
- recon_surf.align_points.angles2rmat(alpha, beta, gamma)[source]¶
Convert FreeSurfer angles (alpha,beta,gamma) in degrees to a rotation matrix.
- recon_surf.align_points.find_affine(p_mov, p_dst)[source]¶
Find affine by least squares solution of overdetermined system.
Assuming we have more than 4 point pairs
- Parameters:
- p_mov
npt.NDArray
The source points.
- p_dst
npt.NDArray
The destination points.
- p_mov
- Returns:
T
Affine transformation matrix.
- Raises:
ValueError
Shape of points should be identical.
- recon_surf.align_points.find_rigid(p_mov, p_dst)[source]¶
Find rigid transformation matrix between two point sets.
- Parameters:
- p_mov
npt.NDArray
Source points.
- p_dst
npt.NDArray
Destination points.
- p_mov
- Returns:
T
Homogeneous transformation matrix.
- recon_surf.align_points.find_rotation(p_mov, p_dst)[source]¶
Find the rotation matrix.
- Parameters:
- p_mov
npt.NDArray
Source points.
- p_dst
npt.NDArray
Destination points.
- p_mov
- Returns:
R
Rotation matrix.
- Raises:
ValueError
Shape of points should be identical.