Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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/tutorial_js_root.html

Thanks in advance for any help.