The example given for the use of histograms (https://software.intel.com/en-us/ipp-dev-reference-histogram) seems misleading. The upper limit is set to 255 and the criterion for an intensity to belong in a bin is stated to be pLevels[k]<=pSrc(x, y)<pLevels(k+1). Therefore, if the randomized image contains the value 255, the sum of frequencies will not reach 64 = 8x8, which very much seems to be the intention of the example.
↧