changed strukture of histogramm from Mat to double[]