Top-level API#
The primary entry points of massphoto are available directly at the package root
after import massphoto as mp.
This page summarises all top-level functions and classes and links to their full reference documentation.
Primary Functions#
Detect events and fit PSFs with chunked (Dask) processing. |
|
Read a movie file and return |
|
Calculate ratiometric movie to reveal contrast changes over time. |
Event Detection & PSF Fitting#
Detect events in a movie with chunked (Dask) processing. |
|
Detects peaks in a multi-dimensional array of maps. |
|
Fit PSFs to detected events for precise position and contrast determination. |
|
A class to represent a 2D point spread function (PSF) with custom or default parameters. |
|
Fit the parameters of the PSF model to a given PSF guess. |
|
Extracts valid point spread function (PSF) thumbnails from a processed movie based on the provided coordinates. |
Movie Transformations & Drift#
Correct drift in a movie by applying a per-frame translation. |
|
Calculate the differential image based on the given parameters. |
|
Calculate "mobile frames" by local median background subtraction. |
|
Calculate relative sharpness for each frame. |
|
Normalize frame means to remove slow illumination drift. |
|
Rebin a 2D image or 3D movie by averaging blocks. |
Event Metrics & Metadata#
Add the local density to the localizations DataFrame. |
|
Add the nearest neighbour distance to the localizations DataFrame. |
|
Annotate an event DataFrame with frame-level metrics. |
|
Convert metadata dictionary to a standardized format. |
Pipeline Orchestration & Replay#
Run a chunked, parallel processing pipeline over a movie. |
|
Resolve an analysis record into defaults overrides and a replay callable. |