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:
TAffine transformation matrix.
- Raises:
ValueErrorShape 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:
THomogeneous 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:
RRotation matrix.
- Raises:
ValueErrorShape of points should be identical.