we would like to perform two things in parallel:
- acquire data on-the-fly on a camera
- analyze these data in parallel
The two tasks are different Matlab codes. We are currently unable to do this in an optimal way (we tried the smpd function which is really tooooo slow).
The idea is to use a MEX file to launch the two codes in two different threads which can then share variables (our acquired data).
Is it the optimal way to do that or does it exist another solution?