Analyzers#

Analyzers are internal callbacks that are passed to scan_subsets and provide custom processing of exhaustive template matching results. This flexibility enables on the fly analysis, logging, or additional processing at the level of individual rotations. The exact workflow can be adapted to individual requirements.

Score aggregation#

MemmapHandler(path_translation, shape, dtype)

Create numpy memmap objects to write score spaces to.

MaxScoreOverRotations([shape, scores, ...])

Determine the rotation maximizing the score of all given translations.

Peak calling#

PeakCaller([number_of_peaks, min_distance, ...])

Base class for peak calling algorithms.

PeakCallerSort([number_of_peaks, ...])

A PeakCaller subclass that first selects number_of_peaks highest scores.

PeakCallerMaximumFilter([number_of_peaks, ...])

Find local maxima by applying a maximum filter and enforcing a distance constraint subsequently.

PeakCallerFast([number_of_peaks, ...])

Subdivides the score space into squares with edge length min_distance and determiens maximum value for each.

PeakCallerRecursiveMasking([...])

Identifies peaks iteratively by selecting the top score and masking a region around it.

PeakCallerScipy([number_of_peaks, ...])

Peak calling using skimage.feature.peak_local_max to compute local maxima.