help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Controlling loop in mex file


From: Middendorf, John R Civ USAF AFRL/RYJT
Subject: Controlling loop in mex file
Date: Fri, 1 Oct 2010 13:45:04 -0400

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]