Skip to main content
. 2025 May 22;25(11):3268. doi: 10.3390/s25113268
Algorithm 1 Core principle of dynamic ROI
Require: Initial frame I0 without noise
Require: Subsequent frames {I1,I2,...,In}
Ensure: Real-time laser stripe tracking
         Initialization:
    1: Extract initial ROI from I0:
    2: ROIprevProcessFrame(I0)
         Iterative Processing:
    3: for each frame It at time t1 do
    4:           Apply previous ROI:
    5:                 CroppedtItROIprev
    6:           Extract new stripe region:
    7:                 StripetDetectLaser(Croppedt)
    8:           Propagate ROI to next frame:
    9:                 ROIprevCalculateNewROI(Stripet)
    10: end for