The present invention uses five regions of interest, 4 corners and 1
center to do Fourier Transform analysis to mark rough location of the
streaks, if there is any. It sets the small window around the center in
each Fourier Transform ROI to zero to mask the cluster of bright points
caused by the lens rolloff or other noises. It use iterative linear
regression to remove the random outliers and to search the best possible
linear pattern. If it finds any streaks, it calculates the angle and
converts it to the streak angle in spatial domain. Once a streak is
detected, it can be removed by applying an inverse Fourier Transform on
the processed magnitude and original phase Fourier Transform images.