Ask Your Question

lucas's profile - activity

2013-06-28 12:03:06 -0600 commented answer calcHist() usage for RGB histogram...?

i am still having problems with the calcHist... i can use the function with 1D and 2D histograms, however when u try to use on BGR images as described above, the code crashes.

I am using exactly the same code above, tried also with an empty image (cv::Mat image2 = cv::Mat::zeros(10, 10, CV_8UC3);) to discard the possibility of a corrupted input image.

supose it is a bug with the current version (2.4.5), don't know exactly. i am using visual studio ultimate 2012 by the way, and the crash is "Unhandled exception at 0x77CF18D0 (ntdll.dll)" The call stack shows "msvcr110.dll!free(void * pBlock)" in the next line.

so, anyone with a similar problem? anyone who uses vs2012 achieved to pass through the calcHist?