justadudewhohacks/opencv4nodejs
View on GitHubVec operators mean() and cross() throw 'is not a function'
Open
#282 opened on May 2, 2018
good first issuehelp wanted
Repository metrics
- Stars
- (5,046 stars)
- PR merge metrics
- (PR metrics pending)
Description
Hi, sorry it is me again. Thanks for fixing the Mat.mean() issue. 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().