Skip to main content
. 2018 Dec 6;18(12):4296. doi: 10.3390/s18124296
Algorithm 1. High Dynamic Stripe Image Enhancement
Input: Low brightness stripe image I.
Output: High quality stripe image Ie.
 1: Function stripeImgHandler
 2: Compute surface reflectivity f;
 3: Normalize f to gray value and get enhanced image It;
 4: Calculate the initial vaue of segmentation threshold T;
 5: T = 0.5 × (min(T) + max(T))
 6: Set segment flag = false;
 7: While(!flag) do
 8: Find the image index, g = find(f > T);
 9: Calculate stripe area segmentation threshold,
 10: Tn = 0.5 × (mean(f(g)) + mean(f(~ g)))
 11: flag = abs(TTn) < 0.1;
 12: T = Tn
 13: End while
 14: Segment It with T;
 15: return Ie;
 16: end function.