We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try to calculate the mean value of an image like this:
data = new cv.Mat.zeros(10,10,cv.CV_8S) mask = new cv.Mat.ones(10,10,cv.CV_8U) mean = cv.mean(data,mask)
the returned mean value is of type cv Scalar and I either cannot access its value or its value is wrong.
mean.$$.count.value returns 1, whereas the mean of a zero-image is obviously 0.
Any help?
The text was updated successfully, but these errors were encountered:
Update: Accessing scalar values is provided with PR #20 through cv.Scalar.get(index). Please accept PR.
Sorry, something went wrong.
No branches or pull requests
When I try to calculate the mean value of an image like this:
data = new cv.Mat.zeros(10,10,cv.CV_8S)
mask = new cv.Mat.ones(10,10,cv.CV_8U)
mean = cv.mean(data,mask)
the returned mean value is of type cv Scalar and I either cannot access its value or its value is wrong.
mean.$$.count.value returns 1, whereas the mean of a zero-image is obviously 0.
Any help?
The text was updated successfully, but these errors were encountered: