Drop baseline and follow-up images, or choose an example.
Drop baseline and follow-up images, or choose an example.
Sequential digital dermoscopy alignment and change-detection comparator in the browser, following the clinical monitoring principles of Kittler et al. (2000, 2006) and Korotkov & Garcia (2012). Everything runs locally in a Web Worker with no server upload.
Preprocessing & alignment. Optional Shades of Gray (Minkowski p = 6) color constancy reduces white-balance drift and anisotropic morphological closing detects elongated dark hairs for alignment while preserving isolated pigment dots. Follow-up captures are aligned onto the baseline frame at true unit pixel pitch (or optional 0.85–1.15× similarity scaling) via a two-stage normalized cross-correlation (NCC) search: a coarse rotation and translation sweep (~128 px wide) followed by coordinate-descent refinement (~256 px wide and full-resolution polish down to 0.25 px and 0.25°).
Change quantification. Per-pixel CIEDE2000 (ΔE2000, Sharma et al. 2005) is computed across the mutually valid FOV and alpha overlap mask with detected hair pixels excluded from color-change statistics. Otsu thresholding on CIELAB skin-contrast scores segments baseline and aligned follow-up lesions inside the valid overlap to report area change, Dice and Jaccard overlap, centroid shift, and normalized and raw ΔE2000 distributions. Outputs are the aligned follow-up PNG, ΔE2000 change map PNG, comparison metrics CSV and JSON provenance.
Limits. Rigid and similarity transforms do not model strong non-linear skin stretch, severe out-of-plane tilt or large occlusions. When similarity scaling is enabled, fitted magnification can absorb real lesion growth so physical growth is marked indeterminate. Automated metrics and descriptive thresholds assist visual side-by-side review and are for research and educational use, not standalone clinical diagnosis.
Dermoscopy images are processed entirely locally in this browser and are never uploaded. Only the optional example pair is fetched from the Neurodesk dataset on Hugging Face.