Skip to content

Cannot access Scalar value #34

@drhouse82

Description

@drhouse82

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions