Ask Your Question

robertral's profile - activity

2019-02-25 04:25:42 -0600 commented question OpenCV.js smaller package

Thanks for your advice. I added WASM support and then manually changed the -DBUILD_opencv_xxx flags to OFF and I've man

2019-02-22 12:53:49 -0600 received badge  Student (source)
2019-02-22 10:08:37 -0600 asked a question OpenCV.js smaller package

OpenCV.js smaller package Hi there, Is it possible to cheery pick modules from OpenCV.js as the package size is >>

2019-01-16 08:24:09 -0600 received badge  Supporter (source)
2019-01-16 08:24:07 -0600 marked best answer OpenCV JavaScript - meanStdDev

I'm having a hard time trying understand how to extract the Mean and Stddev from the function cv.meanStdDev in the JS version of OpenCV.

I've tried the following JS code, but I'm struggling with how to get the Mean and Stddev from the meanStdDev function:

let myMean = new cv.Mat(1,4,cv.CV_64F);
let myStddev = new cv.Mat(1,4,cv.CV_64F);
cv.meanStdDev(img, myMean, myStddev);

I can't seem to find any documentation about this function on the site https://docs.opencv.org/3.4/d5/d10/tu...

Thanks in advance for any help.

2019-01-16 08:24:07 -0600 received badge  Scholar (source)
2019-01-16 08:24:04 -0600 commented answer OpenCV JavaScript - meanStdDev

Thanks, this works for me now. I've read the documentation again and I can see it being mentioned but was hard to find

2019-01-16 03:38:48 -0600 commented question OpenCV JavaScript - meanStdDev

The problem is I'm not sure how to get the scalar value for the Mean or Stddev from this function. I've tried various w

2019-01-16 03:31:11 -0600 asked a question OpenCV JavaScript - meanStdDev

OpenCV JavaScript - meanStdDev I'm having a hard time trying understand how to extract the Mean and Stddev from the func