I am trying to use a DenseHistogram, but unfortunately I always get empty histogram. Here is the piece of code I am running
Code: Select all
DenseHistogram hist=gcnew DenseHistogram(128, Emgu::CV::Structure::RangeF(0,4095));
Emgu::CV::Image<Gray,UInt16>^imageGrab=gcnew Emgu::CV::Image<Gray,UInt16>(AcqWinWidth /*320*/,AcqWinHeight/*240*/);
///getting the image
hist->Calculate(imageGrab->Split(),false, nullptr);
/////////////////
when I checked the structure hist after calculte all my bins are zero - is that a bug, or some part of my code above is not correct?