-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels