Associates a volume geometry with two surfaces (pial and white).
Methods
coordinates_to_grey_distance_mm(nodes, xyz) | Computes the grey position of coordinates in metric units |
surf_project_nodewise(xyz) | Projects coordinates on lines connecting pial and white matter. |
surf_project_weights(nodes, xyz) | Computes relative position of xyz on lines from pial to white matter. |
surf_project_weights_nodewise(xyz) | Computes relative position of xyz on lines from pial to white matter. |
surf_unproject_weights_nodewise(weights) | Maps relative positions in grey matter to coordinates |
Parameters: | volgeom: volgeom.VolGeom :
white: surf.Surface :
pial: surf.Surface :
intermediate: surf.Surface (default: None). :
|
---|
Notes
‘pial’ and ‘white’ should have the same topology.
Methods
coordinates_to_grey_distance_mm(nodes, xyz) | Computes the grey position of coordinates in metric units |
surf_project_nodewise(xyz) | Projects coordinates on lines connecting pial and white matter. |
surf_project_weights(nodes, xyz) | Computes relative position of xyz on lines from pial to white matter. |
surf_project_weights_nodewise(xyz) | Computes relative position of xyz on lines from pial to white matter. |
surf_unproject_weights_nodewise(weights) | Maps relative positions in grey matter to coordinates |
Computes the grey position of coordinates in metric units
Parameters: | nodes: int or np.ndarray :
xyz: Px3 array with coordinates, assuming ‘white’ and ‘pial’ surfaces :
|
---|---|
Returns: | grey_position_mm: np.ndarray :
|
Returns the node-wise average of the pial and white surface
Returns: | intermediate: surf.Surface : |
---|
Returns the pial surface
Returns: | pial: surf.Surface : |
---|
Projects coordinates on lines connecting pial and white matter.
Parameters: | xyz: numpy.ndarray (float) :
|
---|---|
Returns: | xyz_proj: numpy.ndarray (float) :
|
Computes relative position of xyz on lines from pial to white matter.
Parameters: | nodes: True or np.ndarray or int :
xyz: numpy.ndarray (float) :
|
---|---|
Returns: | weights: numpy.ndarray (float) :
|
Computes relative position of xyz on lines from pial to white matter.
Parameters: | xyz: numpy.ndarray (float) :
|
---|---|
Returns: | weights: numpy.ndarray (float) :
|
Maps relative positions in grey matter to coordinates
Parameters: | weights: numpy.ndarray (float) :
|
---|---|
Returns: | xyz: numpy.ndarray (float) :
|
Returns the volume geometry
Returns: | vg: volgeom.VolGeom : |
---|
Returns the white surface
Returns: | white: surf.Surface : |
---|