Hello.
I would like to use the fast OpenCV cv:reduce function for the sake of speed instead instead of looping on eatch col and eatch row to compute the sum of pixel for all row and sum of pixel for all column.
Question: is the function missing from this opencv4nodejs binding ?
the fucntion: https://docs.opencv.org/3.4.1/d2/de8/group__core__array.html#ga4b78072a303f29d9031d56e5638da78e

Yep, it's currently not implemented.
Looking to implement this. I was thinking we could simply add this to the Mat class? Something along the lines of const reducedMat = mat.reduce(0, cv.REDUCE_SUM, cv.CV_32F);
@justadudewhohacks ?
Yep every method that operates on a Mat should be added as a class method to allow chaining.
This has been resolved with PR #340 and released in 4.6.0.
Closing.
Most helpful comment
Looking to implement this. I was thinking we could simply add this to the Mat class? Something along the lines of
const reducedMat = mat.reduce(0, cv.REDUCE_SUM, cv.CV_32F);@justadudewhohacks ?