Image Processing Algorithm for Fringe Analysis in Photoelasticity