I have a Java GUI that takes video frames into a byte array, and saves them directly to a raw output file. I am able to then load this file into MATLAB and execute my signal processing algorithm. However, the raw file ends up being about 1GB and takes a very long time to open in MATLAB.
Currently I use a Process, inside a SwingWorker to run an instance of MATLAB and have the algorithm execute and generate the results. This is all working correctly, but the loading the 1GB raw file into MATLAB is very slow, on the order of 30 seconds.
I am wondering if there is anyway to directly pass the Java byte array to MATLAB?
Thanks in advance!