How flatironinstitute/normcorre works
NoRMCorre is a MATLAB package for online piecewise-rigid motion correction of 2D and 3D calcium-imaging data. The documented workflow accepts an in-memory or file-backed dataset, options, and optionally an initial template; it estimates patch translations, refines them into a smooth motion field, corrects frames, and can update the template online. Batch processing, 1p preprocessing, the MotionCorrection object, and quality metrics are separate documented capabilities. Source excerpts were unavailable, so relationships below rely on the README; implementation details beyond those statements are not inferred.
Main entry points: normcorre.m Online correction · NoRMCorreSetParms.m Correction options · normcorre_batch.m Batch processing · demo_1p.m 1p preprocessing
Components 14
Correction workflow
- Online correction
normcorre.m - Overlapping patches
construct_grid.m - Patch registration
dftregistration_min_max.m - Motion-field refinement
construct_weights.m - Frame correction
apply_shifts.m - Online template
normcorre.m - Registered data
normcorre.m
Configuration
- Correction options
NoRMCorreSetParms.m
User interfaces
- Batch processing
normcorre_batch.m - 1p preprocessing
demo_1p.m - MotionCorrection object
@MotionCorrection/MotionCorrection.m
Evaluation
- Motion metrics
motion_metrics.m
Other components
- User
- Imaging dataset
Connections 18
- User → Online correction: runs correction
README.md - Imaging dataset → Online correction: provides input
README.md - Correction options → Online correction: configures
README.md - User → Correction options: sets parameters
README.md - Online correction → Overlapping patches: splits into patches
README.md - Online correction → Patch registration: estimates shifts
README.md - Online correction → Motion-field refinement: refines shifts
README.md - Online correction → Frame correction: applies motion field
README.md - Online correction → Online template: updates template
README.md - Online correction → Registered data: produces
README.md - User → Batch processing: runs batches
README.md - Batch processing → Online correction: processes mini-batches
README.md - User → 1p preprocessing: runs 1p workflow
README.md - 1p preprocessing → Online correction: uses filtered data
README.md - User → MotionCorrection object: uses object API
README.md - MotionCorrection object → Registered data: performs correction
README.md - User → Motion metrics: evaluates output
README.md - Registered data → Motion metrics: provides registered frames
README.md