Ask Your Question

lordtchofo's profile - activity

2015-05-30 09:47:26 -0600 received badge  Student (source)
2014-02-18 09:17:23 -0600 asked a question Binary compatibility break

i'm trying to execute a code (application using cuda5.5 and openCV) using QT5.2.0 on ubuntu13.10. It compiles normally but when i execute the code i have the following error message

QMetaType::registerType: Binary compatibility break -- Size mismatch for type 'QPaintBufferCacheEntry' [1024]. Previously registered size 0, now registering size 16. The program has unexpectedly finished.

I don't see where the problem comes from and don't know how to solve it. I've been trying to see where the error comes from. I'm using a Graphical User Interface (GUI) in my project and when i just use an OpenCV function (for example simply to read an image) this error occurs. Meanwhile when i use the same function to read an image in a simple project (not using a GUI) i don't have the error. So i'm wandering if this type of error is related to a GUI and how is it related to a QMetaType::registerType . Any help will be welcome.

Regards

2013-10-01 17:36:45 -0600 commented question gpu::calcHist()

my image is loaded correctly after checking

2013-09-30 06:51:14 -0600 commented question gpu::calcHist()

Hi. the output of the CPU and the GPU are differents, GPUCV output matrice is full of zeros and i don't understand where my error comes from while using the gpu calcHist

This's the CPU code

selectedImage1 = image;

vector<Mat> bgr_planes1;

split (selectedImage1, bgr_planes1);

int histSize1 = 256;

float range1[] = {0, 256};

const float* histRange1 = {range1};

bool uniform = true; bool accumulate = false;

cv::calcHist(&bgr_planes1[0], 1, 0, Mat(), b_hist1, 1, &histSize1, &histRange1, uniform, accumulate);

cv::calcHist(&bgr_planes1[1], 1, 0, Mat(), g_hist1, 1, &histSize1, &histRange1, uniform, accumulate);

cv::calcHist(&bgr_planes1[2], 1, 0, Mat(), r_hist1, 1, &histSize1, &histRange1, uniform, accumulate);

Thx for helping

2013-09-29 18:28:55 -0600 asked a question gpu::calcHist()

i'm trying to compare the computation of histogram on cpu and gpu using gpucv but there's something i don't understand. The results are differents and i don't understand why. this is the code i'm using for gpucv

cv::Mat histImage;

histImage = cvLoadImage(img.toStdString().c_str(), CV_8UC1);

gpu::GpuMat devImage, result;

devImage.upload(histImage);

gpu::calcHist(devImage, result);

Thanks for helping