Utilities#
Functions that are used in exhaustive and non-exhaustive template matching or are specific to template matching in general are grouped in the utilities module.
Masks#
|
Creates a box mask centered around the provided center point. |
|
Creates a mask of the specified type. |
|
Creates a tube mask. |
|
Creates an ellipsoidal mask. |
Rotations#
|
Returns rotation matrices with desired |
|
Convert Euler angles to a rotation matrix. |
|
Compute the rotation matrix or Euler angles required to align an initial vector with a target vector. |
|
Convert a rotation matrix to euler angles. |
|
Get orientations and weights proportional to the given angular_sampling. |
|
Generate rotations describing the possible placements of a vector in a cone. |
|
Convert quaternions to rotation matrices. |
Subsetting#
|
Extract the centered portion of an array based on a new shape. |
|
Splits |
|
Mask the centered portion of an array based on a new shape. |
|
Applies convolution_mode to |
|
Computes the position of the convolution of pieces in the full convolution. |
|
Computes a parallelization schedule for a given computation. |
Serialization#
|
Load and deserialize data written by |
|
Serialize and write data to a file invalidating the input data. |
Utilities#
|
Perform random phase scrambling of |
|
Apply a rigid transformation (rotation and translation) to given coordinates. |
|
Converts a obj:numpy.ndarray to a obj:numpy.memmap. |
|
Convert a obj:numpy.memmap to a obj:numpy.ndarray and delete the memmap. |
|
Standardizes |
|
Return the given function or a no-op function based on execute_operation. |
|
Computes the minimal enclosing box around coordinates with margin. |
|
Returns the path to a temporary file with given suffix. |