justadudewhohacks/opencv4nodejs
Vec operators mean() and cross() throw 'is not a function'
開放
#282 建立於 2018年5月2日
good first issuehelp wanted
倉庫指標
- 星標
- (5,046 顆星)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
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().