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

Consider using massiv instead of repa #110

Open
basvandijk opened this issue Feb 20, 2018 · 1 comment
Open

Consider using massiv instead of repa #110

basvandijk opened this issue Feb 20, 2018 · 1 comment

Comments

@basvandijk
Copy link
Contributor

The massiv array library looks like an improved and maintained alternative to repa. We should consider writing an adapter for OpenCV Mats for massiv Arrays like we do for repa Arrays.

@lehins massiv looks pretty cool! Do you think it's possible to write an adapter between OpenCV Mats and massiv Arrays so that we can read and write OpenCV Mats using the massiv API?

Note that one thing that is missing is that we don't have an instance for the repa Target class. This means that we can't actually write OpenCV Mats using repa. I wonder if we can do this in massiv.

@lehins
Copy link

lehins commented Feb 20, 2018

@basvandijk This is a great idea. I don't see any reason why OpenCV Mats can't be used together with massiv.
There are few class instances that need to be implemented: Construct, Size and Source and Manifest for pure interface: ability to create, index, extract and resize arrays, which I suspect should be similar to the way Repa is integrated right now. And also an instance for Mutable (a corresponding Target class in Repa), which should be possible, considering that Mat is just a pointer to memory that we can peek and poke.
Let me know if you have any questions or need any help with it. I could try doing that myself, but I won't have time for another couple of weeks. If you won't have any progress on that I'll take a stab at it then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants