Ok so I am using a mex file to capture images off of a
camera. At the moment I just want to capture single images at a time, in
a loop, so it’s sort of like continuous capturing. So heres the
question, How can I send a signal to break the loop through octave (if it’s
a continuous loop)? I’ve tried using a getchar()… but octave
puts it in queue and doesn’t evaluate it while the loop is running.
The obvious answer is calling the entire mex function in a
loop, instead of just the image capture. But that is to slow. Which leads
to the next problem… how can I make it pass back each image as they are
collected, rather than waiting until to loops exits and passing back the
current image? I’m thinking this would require me running the
process in the background or something.