kalwalt / webarkit-jsfeat-cpp

c++ jsfeat version
GNU Lesser General Public License v2.1
6 stars 3 forks source link

export imgproc as a class in bindings.cpp #10

Closed kalwalt closed 2 years ago

kalwalt commented 2 years ago

At this moment grayscale and grayscale_m are exported with cwrap but i think it's possible to export the whole impgroc class. At least i can test if it is possible.

kalwalt commented 2 years ago

This was done with PR #11 i followed instructions from this stackoverflow article (see the answer). I simply pass the pointer as an integer parameter and then use reinterpret_cast to treat it as a pointer. I succesfully implemented in various part of the code, in imgproc class and other as well.