Misc tools to find activations and cut on maps
Convert the x, y, z coordinates from one image space to another space.
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
Warning: The x, y and z have their Talairach ordering, not 3D : numy image ordering. : |
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 :
|
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.