justadudewhohacks / justadudewhohacks/opencv4nodejs

Vec operators mean() and cross() throw 'is not a function'

Open
#282 4 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted
Dominant language
C++
Stars
5.1k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

Hi, sorry it is me again.
Thanks for fixing the [Mat.mean() issue](https://github.com/justadudewhohacks/opencv4nodejs/issues/267). Now I wanted to use the vec mean() operator and got the following error:
```
Uncaught Exception:
TypeError: mat.mean(...).mean is not a function
```
I then tested out all the other vec operators and found that `cross()` also throws the same exception.
All other operators worked fine. Am I doing something wrong?
First I was calculating `mat.mean()` which gave me `Vec4 { z: 0, y: 0, x: 0, w: 0 }`
The result I then used for the vec operator like so `mat.mean().mean()`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.