candidates_from#
- anri.index.candidates_from(d, cand_in, pred, ring_j, pos, scan, dims, k, vb, log=<built-in function print>)[source]#
Pick each voxel’s k best orientations as
candidates()does, but from its own list only.- Parameters:
d (
Array) – [n_cells] histogramcand_in (
Array) – [Nv, K2] orientations to score per voxel, e.g. frominherit_candidates()k (
int) – Candidates kept per voxellog (
Callable, default:<built-in function print>) – Progress messages
- Returns:
f1, cand (
jax.Array) – [Nv, k] first-update occupancies and orientation indices