siibra.commons
Constants, functions, and classes used commonly across siibra.
Functions
|
Compute the mutual information between two 3D arrays, which need to have the same shape. |
|
Estimate approximate isotropic scaling factor of an affine matrix. |
|
Given a nifti image object with four dimensions, returns a modified object with 3 dimensions that is obtained by taking the argmax along one of the four dimensions (default: the last one). |
|
clean up a region name to the for matching |
|
Compare two arrays in physical space as defined by the given affine matrices. |
|
Provide an iterator over connected components in the array. |
|
Compute a 3D Gaussian kernel of the given bandwidth. |
|
Creates an uppercase identifier string that includes only alphanumeric characters and underscore from a natural language name. |
|
|
|
|
|
|
|
|
|
Resamples to source image to match the target image according to target's affine. |
|
|
|
|
|
Converts a string in snake_case into CamelCase. |
|
Construct a 3D homoegneous translation matrix. |
Adds asterisks to strings that appear multiple times, so the resulting list has only unique strings but still the same length, order, and meaning. For example: unify_stringlist(['a','a','b','a','c']) -> ['a','a*','b','a**','c']. |
|
|
Construct a 3D y axis rotation matrix. |
Classes
|
|
|
Lookup table for instances of a given class by name/id. |
|
|
|
Identifies a unique region in a ParcellationMap, combining its labelindex (the "color") and mapindex (the number of the 3Dd map, in case multiple are provided). |
|
An enumeration. |
|
Simple polyline representation which allows equidistant sampling.. |
|
An enumeration. |
|