program for make histograms taking into account the viewing angle