-
Notifications
You must be signed in to change notification settings - Fork 23
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
This code would require porting to opencv4 #7
Comments
I started this port to opencv4. It comes with a boost-python wrapper. https://github.com/lejeunel/gPb-GSoC Keep in mind though that it produces malloc/seg-fault errors... which I'm still trying to solve. |
I can try to help, the main issues are found in the watershed file. |
The watershed is ok for me. |
Also i got errors compiling numpy-opencv-converter
|
Two options:
|
I used this command
I had python and boost installed but it didn't work properly because of the numpy-opencv-converter CMakeLists.txt Now it compiled without error. |
I'm not sure if I actually found the actual seg-fault culprit, but I got around it with shared pointers :x |
eh, well, first i need to know how to use it X) |
Ok, it works but it's very slow wow.
I have seen it fails when i use a starred operation. I can only use it one by one. |
Also it's SUPER slow because EVERY SINGLE pixel access is made with img.at instead of a pointer. |
indeed this code is pretty bad. Here a reference for iterating on pixels: |
I have done some work with opencv C++ int the past but a reminder is a pretty good option, also that im working rn 100% in python. Also i get random crashes. I will review the package and maybe i will do some PR |
A lot of the changes are easy to make but others are not that easy.
Could you look into that?
The text was updated successfully, but these errors were encountered: