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

Optimization #1

Open
brandonmpetty opened this issue Jan 18, 2021 · 0 comments
Open

Optimization #1

brandonmpetty opened this issue Jan 18, 2021 · 0 comments

Comments

@brandonmpetty
Copy link

Hey! Thanks for taking an interest in the library!
I'd be interested in getting your feedback. I am working on a new version that is ~3x faster across the board for almost every algorithm and uses a fraction of the memory.

I am also updating the demos to include an OpenCV example:
https://github.com/brandonmpetty/Doxa/blob/V3/Demo/Cpp/main.cpp

Check it out. If you use the technique in there it should be faster and more memory effectient.
You are converting a color Mat into a grayscale Mat, then moving that data into a vector, and then creating a reference to that vector's memory. In the example above, you can convert the image to grayscale on load, and reference that grayscale data directly without any other memory copying.

Hope that helps! I am new to OpenCV and your repo really helped get me started so I wanted to give back to it. Thanks again!

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