c++ + OpenCV 2.4: How to equalizeHist an IplImage* type? -


i wrote function equalizehist iplimage* type, everytime start program breaks

unhandled exception @ at 0x75454598 in opencv+openmp+moments_test.exe: microsoft c++ exception: cv::exception @ memory location 0x00b8e6c0.

please, me convert iplimage -> mat -> iplimage properly!

#include <opencv/cv.h> #include <opencv/highgui.h>  using namespace std;  void equalizehistogramm(iplimage* img){ iplimage* buf = cvcloneimage(img); cv::mat mat(img); cv::mat buf1(img); cv::equalizehist(mat, buf1); iplimage buf2 = buf1; img = &buf2;} 


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -