Misc tools to find activations and cut on maps
Convert x, y, z coordinates from one image space to another space.
Warning: x, y and z have Talairach ordering, not 3D numpy image ordering.
Parameters : | x : number or ndarray
y : number or ndarray
z : number or ndarray
affine : 2D 4x4 ndarray
|
---|---|
Returns : | x : number or ndarray
y : number or ndarray
z : number or ndarray
|
Find the center of the largest activation connect component.
Parameters : | map : 3D ndarray
mask : 3D ndarray, boolean, optional
activation_threshold : float, optional
|
---|---|
Returns : | x: float :
y: float :
z: float :
|
Heuristic finds n_cuts with max separation along a given axis
Parameters : | map3d : 3D array
affine : array shape (4, 4)
slicer : string, optional
n_cuts : None or int >= 1, optional
threshold : None or float, optional
|
---|---|
Returns : | cuts : 1D array of length n_cuts
|
Raises : | ValueError: :
ValueError :
|
Return the world-space bounds occupied by a mask given an affine.
Notes
The mask should have only one connect component.
The affine should be diagonal or diagonal-permuted.