public bool GetGreyLevelHistogram(int number_of_bins, out ulong[] hist) { double max = this.MaximumPossibleIntensityValue; hist = new ulong[number_of_bins]; return(FreeImage.Histogram(this.Dib, 0, max, number_of_bins, hist)); }