MaxScoreOverTranslations#

class MaxScoreOverTranslations(shape, n_rotations, aggregate_axis=None, shm_handler=None, offset=None, **kwargs)[source]#

Bases: MaxScoreOverRotations

Determine the translation maximizing the score over all possible rotations.

Parameters:
shapetuple of int

Shape of array passed to MaxScoreOverTranslations.__call__().

n_rotationsint

Number of rotations to aggregate over.

aggregate_axistuple of int, optional

Array axis to aggregate over, None by default.

shm_handlermultiprocessing.managers.SharedMemoryManager, optional

Shared memory manager, defaults to memory not being shared.

**kwargs: dict, optional

Keyword arguments passed to the constructor of the parent class.

Attributes

MaxScoreOverTranslations.is_shareable

Boolean indicating whether class instance can be shared across processes.

Methods

MaxScoreOverTranslations.__call__(scores, ...)

Update the parameter store.

MaxScoreOverTranslations.merge(param_stores, ...)

Merge multiple instances of the current class.