tomodrgn.so3_grid#

Implementation of Yershova et al. “Generating uniform incremental grids on SO(3) using the Hopf fribration” See source code implementation: https://lavalle.pl/software/so3/so3.html

Functions

base_SO3_grid

Return the base resolution SO(3) grid

get_base_ind

Return the corresponding S2 and S1 grid index for an index on the base SO3 grid

get_neighbor

Return the 8 nearest neighbors on SO3 at the next resolution level

get_s1_neighbor

Return the 2 nearest neighbors on S1 at the next resolution level

get_s2_neighbor

Return the 4 nearest neighbors on S2 at the next resolution level

grid_SO3

Sample points on SO(3) at the specified resolution.

grid_s1

Sample S1 at a given resolution (uses uniform sampling).

grid_s2

Sample S2 at a given resolution (uses HEALPix sampling).

hopf_to_quat

Transform Hopf coordinates to quaternions