A solution of the photoelastic problem by photometry