Skip to content
DOC_02 · APP 1 · OPTIONAL

Image Aligner

What it does: Detects an ArUco marker in every frame and shifts each frame horizontally so the marker sits where it was in the first frame. Use it when the plate or camera shifted sideways during the timelapse.

Timelapse of a plate before running the Image Aligner. The plate and its ArUco marker drift sideways between frames.Before alignment
The same timelapse after running the Image Aligner. The plate and its ArUco marker stay in place from frame to frame.After alignment
FIG_01 · Before and afterThe same timelapse before and after running the Image Aligner.
  • An ArUco marker from the DICT_4X4_1000 dictionary must be visible in the images. This is the same marker family the Analysis app uses for scale calibration.
  • Images are .png, .tif or .tiff, directly inside each plate folder.
  • The marker must be detected in the first frame. It is the reference. If it is not, the app warns “No ArUco marker detected in the first frame — images left unaligned.” and writes unmodified copies.

Launch the app through the provided “ChronoRoot Image Aligner” desktop shortcut created by the installer

Alternatively: Launch the program through the CLI using this bash script

BASH
conda activate ChronoRoot
cd imageAligner
python run.py
  1. Click Load Folder (green button, top left). A folder picker opens, and you can select more than one.

    Pick the parent folder that holds your plate folders. Every immediate subfolder becomes one row in the table. The parent folder itself is not added.

    The log shows “Loaded N folder(s) from …”.

  2. For each row, click Align. The row becomes Queued, then Aligning. Folders are processed one at a time, in the order you queued them.

  3. Follow the Progress column and the log at the bottom. Progress covers two phases:

    1. Detecting markers (first half of the bar).
    2. Writing aligned images (second half of the bar).

    Frames with no marker are logged as Warning: no marker detected in <file>.

  4. When the row turns Complete (green), the aligned images are in <folder>/aligned/, each renamed <original name>_aligned.<ext>.

ControlWhat it does
Load FolderAdd the subfolders of one or more chosen folders as rows
Queue: N | Idle labelNumber of folders waiting, and which folder is processing
Clear Queue (red)Removes all pending folders from the queue. Does not stop the one running
StatusMeaningAction button
Not StartedNo aligned/ folder yetAlign (green)
QueuedWaiting its turnCancel
AligningCurrently runningKill Process (red)
Incompletealigned/ has fewer images than the sourceRe-align (blue)
Completealigned/ has at least as many images as the sourceRe-align (blue)
ErrorWorker raised an error (e.g. unreadable image)Retry (orange)
No ImagesFolder has no png/tif/tiffnone
  • Remove (per row) stops tracking the folder in the app. Files are not deleted.
  • The table refreshes automatically (about every 1–3 s), so it picks up changes made on disk.
  • Closing the window while a job runs asks “Force quit?”
  • Horizontal only. The shift is computed from the marker centroid in x. There is no vertical correction, rotation or scale correction.
  • Frames with no marker detected are copied unchanged (no shift) into aligned/.
  • Re-align on a Complete folder overwrites files in aligned/ that share the same names.

The aligned images sit in an aligned/ subfolder of each plate. The Segmentation app detects it automatically: when you load the experiment folder, each plate’s aligned subfolder gets its own row (shown as plate1/aligned) next to the plate itself.

  1. Segment the plate1/aligned row in the Segmentation app.
  2. In the Analysis app, point Select Video Folder at <plate>/aligned.
”No ArUco marker detected in the first frame”

The marker is missing, occluded or out of focus in frame 1. Crop or re-shoot, or skip alignment.

Many “no marker detected” warnings

The marker may be partly hidden, there may be glare, or the marker is from the wrong dictionary (it must be 4×4_1000).

Row says “No Images”

The folder holds its images in a subfolder, or uses another file extension.

Row stuck at Error

Check the log for Failed to read image: <file>. Fix or remove the file, then click Retry.

Frames still look misaligned after alignment

Click Verify to check that the ArUco marker corners are detected accurately. If they aren’t, the marker may be poorly placed on the plate, or the image quality may be too low.