xmipp3.utils module
This module contains utils functions for Xmipp protocols
- class xmipp3.utils.PathData(**kwargs)[source]
Bases:
Data
Just contains two list of x and y coordinates.
- class xmipp3.utils.Point(pointId, data, weight, state=0)[source]
Bases:
object
Return x, y 2d coordinates and some other properties such as weight and state.
- DISCARDED = -1
- NORMAL = 0
- SELECTED = 1
- xmipp3.utils.applyTransform(imag_array, M, shape)[source]
Apply a transformation(M) to a np array(imag) and return it in a given shape
- xmipp3.utils.normalize_array(ar)[source]
Normalize values in an array with mean 0 and std deviation 1
- xmipp3.utils.rotation(imag, angle, shape, P)[source]
Rotate a np.array and return also the transformation matrix #imag: np.array #angle: angle in degrees #shape: output shape #P: transform matrix (further transformation in addition to the rotation)