Fast transfer of .net array to matlab array.
Mostra commenti meno recenti
I am calling a .net dll from matlab, which is working just fine. I get an image from the .net dll and then want to process it with matlab, before sending it back to .net. The problem is that most of the matlab functions do not work with the .net array, so I would like to change the .net array to a matlab array, do the processing, and then send it back to .net.
The problem is that I cannot find an efficient way to do this. Indexing the .net array, is painfully slow. There does not seem to be a built in function to do this transfer. Is there a good way to transfer an array of single to a matlab array?
1 Commento
Sven
il 29 Ago 2012
Brian, sorry, no answer for you, but I'd be interested if you find some things out.
I suspect the "best" way to go about it will be to somehow override the .NET array access, find out where the first element is stored in memory, and then try to access the whole array at once. Obviously this is getting outside of vanilla MATLAB and a bit more into "undocumented" stuff...
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!