The aim of this work is to find out the components of stress tensor in plane specimens. For this purpose the photoelasticity methodology is used. In order to make this technique more comfortable for use, there was developed an algorithm in MATLAB program. The results are compared with numerical solution. The main advantages of the developed algorithm are the speed and the capabilities to extend to analyze the plastic deformation and strain conditions in the material during forming processes.