app_mask.m specifically for FRET experiments