Example #1
0
void Vector<unsigned char>::createHistogram ( aol::Vector<int> &Histo ) const {
  const int numPixels = this->size();
  Histo.reallocate ( 256 );
  for ( int i = 0; i < numPixels; ++i )
    ++Histo [ this->get ( i ) ];

}