I have a Java GUI that takes video frames into an array of bytes and saves them directly to the original output file. I can then load this file into MATLAB and execute my signal processing algorithm. However, the source file ends in approximately 1 GB and takes a very long time to open it in MATLAB.
I am currently using Process inside SwingWorker to run a MATLAB instance and the algorithm executes and generates the results. All this works correctly, but loading a raw 1 GB file into MATLAB is very slow, on the order of 30 seconds.
I am wondering, is there anyway the ability to directly pass an array of Java bytes to MATLAB?
Thanks in advance!
source share