theothergrantdavidson / opencv-ts

A place for the typescript bindings for OpencvJS
Apache License 2.0
52 stars 19 forks source link

add proper types for TypedArray values #28

Closed felschr closed 2 years ago

felschr commented 2 years ago

The opencv.js documentation mentions the types for data, ucharPtr(), etc: https://docs.opencv.org/3.4/de/d06/tutorial_js_basic_ops.html

This change also adds the missing data8S property.

felschr commented 2 years ago

Additionally, I found that ptr() also returns a Uint8Array among the following opencv.js tests: https://github.com/opencv/opencv/blob/c8228e5789510ec26378eceb17311dd7bddf0b33/modules/js/test/test_mat.js#L383-L386