CLAHE - Redistributing excess pixels among histogram bins
you have to redistributed 13 pixels(# of clipped) to the histogram.

 // clip histogram
  194 
  195             if (clipLimit_ &gt; 0)
  196             {
  197                 // how many pixels were clipped
  198                 int clipped = 0;
  199                 for (int i = 0; i &lt; histSize; ++i)
  200                 {
  201                     if (tileHist[i] &gt; clipLimit_)
  202                     {
  203                         clipped += tileHist[i] - clipLimit_;
  204                         tileHist[i] = clipLimit_;
  205                     }
  206                 }
  207 
  208                 // redistribute clipped pixels
  209                 int redistBatch = clipped / histSize;
  210                 int residual = clipped - redistBatch * histSize;
  211 
  212                 for (int i = 0; i &lt; histSize; ++i)
  213                     tileHist[i] += redistBatch;
  214 
  215                 for (int i = 0; i &lt; residual; ++i)
  216                     tileHist[i]++;
  217             }