Skip to content

SoFTg — Solar Feature Tracking: granules

SoFTg provides classical granule segmentation and an optional UNet++ training/inference workflow.

Solar granules are bright convective cells in photospheric intensity images, separated by darker intergranular lanes. Segmentation assigns pixels to granules and lanes.

from WaLSAlib import SoFTg

Choose a workflow

Workflow Requires Produces
Classical segmentation Base WaLSAlib installation and a 2D intensity image with known km/pixel scale Granule labels, seeds, and pruned lane skeleton
Model training/prediction softg extra, suitable training/validation data, compatible weights for prediction Binary granule/lane predictions
Desktop annotation softg-gui extra and a graphical desktop Tools for preparing manual training labels

Classical segmentation returns individual granule labels. Neural-network prediction produces a binary granule/lane mask. Temporal tracking requires association across frames.

Scientific use

See the citation guide for the method reference.

Validate boundaries, completeness, split/merged granules, and lane topology against representative observations. Resolution, contrast, preprocessing, and model training distribution all affect the result.

Implementation sources

granule_detection_lib.py