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.

Specification#

AbstractAnalyzer serves as specification for new analyzers.

AbstractAnalyzer

Abstract base class for template matching analyzers.

Score aggregation#

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

Determine the rotation maximizing the score over all possible translations.

MaxScoreOverTranslations(shape, n_rotations)

Determine the translation maximizing the score over all possible rotations.

MaxScoreOverRotationsConstrained(cone_angle, ...)

Implements constrained template matching using rejection sampling.

Peak calling#

PeakCaller(shape[, num_peaks, min_distance, ...])

Base class for peak calling algorithms.

PeakCallerSort(shape[, num_peaks, ...])

A PeakCaller subclass that first selects num_peaks highest scores.

PeakCallerMaximumFilter(shape[, num_peaks, ...])

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

PeakCallerFast(shape[, num_peaks, ...])

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

PeakCallerRecursiveMasking(shape[, ...])

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

PeakCallerScipy(shape[, num_peaks, ...])

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