MaxScoreOverRotationsConstrained#

class MaxScoreOverRotationsConstrained(cone_angle, positions, rotations, reference=(0, 0, 1), acceptance_radius=10, **kwargs)[source]#

Bases: MaxScoreOverRotations

Implements constrained template matching using rejection sampling.

Parameters:
cone_anglefloat

Maximum accepted rotational deviation in degrees.

positionsBackendArray

Array of shape (n, d) with n seed point translations.

positionsBackendArray

Array of shape (n, d, d) with n seed point rotation matrices.

referenceBackendArray

Reference orientation of the template, wlog defaults to (0,0,1).

acceptance_radiusint or tuple of ints

Translational acceptance radius around seed point in voxels.

**kwargsdict, optional

Keyword aguments passed to the constructor of MaxScoreOverRotations.

Attributes

MaxScoreOverRotationsConstrained.shareable

Indicate whether the analyzer can be shared across processes.

Methods

MaxScoreOverRotationsConstrained.__call__(...)

Update the parameter store.

MaxScoreOverRotationsConstrained.init_state()

Initialize the analysis state.

MaxScoreOverRotationsConstrained.merge(...)

Merge multiple instances of the current class.

MaxScoreOverRotationsConstrained.result(state)

Finalize the analysis result with optional postprocessing.