It appears core functions like cv.ucharAt or cv.ucharPtr are undefined, there could be other missing functions I don't know about. Maybe there was an issue during compilation.
I made my mistake, ucharAt and ucharPtr are instance methods of a cv.Mat object, so the right way to use them is by reference a Mat: img.ucharAt(...) or img.ucharPtr(...).
It appears core functions like
cv.ucharAt
orcv.ucharPtr
are undefined, there could be other missing functions I don't know about. Maybe there was an issue during compilation.