cedalion.geometry package
Subpackages
- cedalion.geometry.photogrammetry package
- Submodules
- cedalion.geometry.photogrammetry.processors module
ColoredStickerProcessor
ColoredStickerProcessorDetails
ColoredStickerProcessorDetails.cfg_colors
ColoredStickerProcessorDetails.cluster_circles
ColoredStickerProcessorDetails.cluster_colors
ColoredStickerProcessorDetails.cluster_coords
ColoredStickerProcessorDetails.plot_cluster_circles()
ColoredStickerProcessorDetails.plot_vertex_colors()
ColoredStickerProcessorDetails.vertex_colors
ColoredStickerProcessorDetails.vertex_hue
ColoredStickerProcessorDetails.vertex_value
ScanProcessor
minEnclosingCircle()
pca()
- Module contents
Submodules
cedalion.geometry.landmarks module
- class cedalion.geometry.landmarks.LandmarksBuilder1010(scalp_surface, landmarks)
Bases:
object
Construct the 10-10-system on scalp surface based on Oostenveld and Praamstra [OP01].
- Parameters:
scalp_surface (
Surface
) – a triangle-mesh representing the scalplandmarks (
DataArray
) – positions of “Nz”, “Iz”, “LPA”, “RPA”
- build()
- plot()
cedalion.geometry.registration module
Registrating optodes to scalp surfaces.
- cedalion.geometry.registration.register_icp(surface, landmarks, geo3d, niterations=1000, random_sample_fraction=0.5)
- cedalion.geometry.registration.register_trans_rot(coords_target, coords_trafo)
- cedalion.geometry.registration.register_trans_rot_isoscale(coords_target, coords_trafo)
cedalion.geometry.segmentation module
Funtionality to work with segmented MRI scans.
- cedalion.geometry.segmentation.cell_coordinates(volume, flat=False)
cedalion.geometry.utils module
- cedalion.geometry.utils.m_rot(angles)
Calculate the affine transformation matrix for a 3D rotation.
R = Rz(alpha)Ry(beta)Rx(gamma)
https://en.wikipedia.org/wiki/Rotation_matrix#General_rotations
- Return type:
ndarray
- cedalion.geometry.utils.m_scale1(s)
Calculate the affine transformation matrix for scaling s.
Apply one scaling factor for all dimensions.
- Return type:
ndarray
- cedalion.geometry.utils.m_scale3(s)
Calculate the affine transformation matrix for scaling s.
Apply different scaling factors for each dimension.
- Return type:
ndarray
- cedalion.geometry.utils.m_trans(t)
Calculate the affine transformation matrix for a tranlation t.
- Return type:
ndarray
Module contents
Tools for geometric calculations.