C#: Seeking fast datastructure to add pixels to a partitioned HSB histogram
问题 In my application I read RGB pixel values from several images using fast unmanaged code and then convert them to HSB colors. Now I'd like to build an HSB histogram using the following partitions: Hue: 18 partitions, resulting in intervals of 20 from 0...360 Saturation: 3 partitions, resulting in intervals of 0,33 from 0...1 Brightness: 3 partitions, resulting in intervals of 0,33 from 0...1 So my histogram has a total of 18*3*3=162 partitions (bins) which consist of the lower interval borders