Skip to main content
Module region_grow
qsm_
core
0.10.0
Module region_
grow
Module Items
Constants
Functions
Type Aliases
In crate qsm_
core
qsm_core
Module
region_
grow
Copy item path
Source
Constants
ยง
NEIGHBOR_
OFFSETS
๐
Neighbor offsets: (dimension_for_weight, di, dj, dk) dimension 0 = x edges, 1 = y edges, 2 = z edges
TWO_PI
๐
Functions
ยง
grow_
region_
unwrap
Region growing phase unwrapping (matches Python implementation exactly)
idx3d
๐
Convert 3D index to flat index (Fortran order / column-major, matches NIfTI) For array shape (nx, nx, ny), index [i,j,k] maps to: i + j
nx + k
nx*ny
idx4d
๐
Convert 4D index (for weights array) to flat index (Fortran order) weights layout: [dim][i][j][k] where dim is 0,1,2 for x,y,z For array shape (3, nx, nx, ny), index [dim,i,j,k] maps to: i + j
nx + k
nx
ny + dim
nx
ny
nz
Type Aliases
ยง
Queue
Item
๐
Queue item: (target_i, target_j, target_k, ref_i, ref_j, ref_k) Stores both the target voxel to unwrap AND the reference voxel to use