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

replacing openCV with something smaller/lighter? #8

Open
damian0815 opened this issue Dec 18, 2022 · 2 comments
Open

replacing openCV with something smaller/lighter? #8

damian0815 opened this issue Dec 18, 2022 · 2 comments

Comments

@damian0815
Copy link

on macOS it's a headache to install OpenCV dev tools, which makes compiling pypatchmatch an ordeal. i'd like to try replacing the opencv backend with something that's less troublesome, but i'm not sure if this is feasible.

afaict from looking at the output of nm, OpenCV is only really providing a matrix backend, is that correct? are there any obvious performance considerations to using some other matrix lib? something like eg the header-only linalg (assuming it supports the required dimensionality).

@netsvetaev
Copy link

This would be very nice!

@vacancy
Copy link
Owner

vacancy commented Dec 19, 2022

Yes, that will be cool!

The core part of the project does not have additional dependencies other than the basic matrix storage. (Note that, a lot of the code does rely on the "shallow copy" feature of cv::Mat. That is, when we do cv::Mat a = b; it does not copy the content).
However, some of the debug functionalities (e.g., printing the intermediate results) and IO codes (the C++ demo) do depend on image io / imshow / and resizing.

So it is possible to port the core part (including the python bindings).

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

3 participants