Ask Your Question

Arritmic's profile - activity

2016-08-11 09:37:52 -0500 answered a question Undefined reference to algorithm

Many times the problem is related to the order of the libraries:

LIBS += -lopencv_imgcodecs -lopencv_objdetect -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_video
LIBS += -L$${_OPENCV_PATH_ANDROID}/sdk/native/3rdparty/libs/armeabi-v7a -ltbb

I need to put "-lopencv_objdetect" before "-lopencv_core"

2016-03-31 14:16:35 -0500 received badge  Editor (source)
2016-03-31 13:57:03 -0500 asked a question Accuracy in cv::mean function between opencv 2.4.9 and opencv 3.1.0


I just changed my software which was using opencv 2.4.9 version to opencv 3.1.0 and I am having a very very little differences from cv::mean function.

cv::Scalar aux1 = cv::mean(img_32);
std::cout << "MEAN: "<< aux1.val[0] << std::endl;

Output with opencv 2.4.9:

From ORIGINAL [img_32]:  [169,168,208] // Some pixel values from img_32
MEAN: 0.439712

Output with opencv 3.1.0:

From UPDATED [img_32]:  [169,168,208] // Some pixel values from img_32
MEAN: 0.439713

I checked rigorously if there were differences in the image.... Can anyone help me?? Any idea??

Thanks in advance