Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit test for array handler #8

Open
iishiishii opened this issue Feb 6, 2024 · 2 comments
Open

unit test for array handler #8

iishiishii opened this issue Feb 6, 2024 · 2 comments

Comments

@iishiishii
Copy link
Owner

iishiishii commented Feb 6, 2024

Compare the following function with python results:

  • normalize (numpy)
  • standardize (get calMin calMax from NVImage) (numpy)
  • transpose (opencv)
  • resize (opencv)
  • pad (opencv)
  • hstack (numpy)

How to interface opencv and numpy:

  1. newer opencv use np array (https://stackoverflow.com/questions/7587490/converting-numpy-array-to-opencv-array)
  2. check if np.uint32 data type is not supported by OpenCV (it supports uint8, int8, uint16, int16, int32, float32, float64)

How to convert cpp library to wasm:

  1. opencv opencv type https://stackoverflow.com/questions/10167534/how-to-find-out-what-type-of-a-mat-object-is-with-mattype-in-opencv
  2. numcpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant