A computer aided analysis of photoelastic patterns