|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bruxton.sidx.Acquisition
public class Acquisition
Responsible for managing the acquisition.
Each instance of Camera owns one instance of the class. The user of SIDX
should not create the object. It should be obtained by using getAcquisition function
of Camera object.
| Method Summary | |
|---|---|
void |
abort()
Terminate the acquisition requested before it completes. |
void |
beginContinuous()
Prepare for the continuous mode acquisition and the oldest unretrieved frames will be returned in sequence. |
void |
beginFocus()
Prepare for the continuous mode acquisition and the most recent frame available in the buffer will be returned. |
void |
beginScript(java.lang.String script)
Prepare the acquisition for using script. |
void |
beginSequence(int frames_per_sequence)
Prepare for the acquisition of a sequence of frames. |
void |
end()
Clean up the acquisition. |
void |
finish()
Finish the acquisition requested. |
int |
framesAvailable()
Report the number of frames acquired. |
int |
getNextImages(int frame_count,
int roi,
Frame[] frames)
Read the next frames from the acquisition buffer. |
int |
getSize()
Return the size in bytes of a single frame. |
int |
getX()
Return the x dimension in pixels of the frame. |
int |
getY()
Return the y dimension in pixels of the frame. |
void |
start()
Start the acquisition requested. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void beginSequence(int frames_per_sequence)
throws Exception
frames_per_sequence - the number of frames to acquire between each
call to start and finish.
Exceptionpublic void end()
beginSequence,
beginScript, beginContinuous
and beginFocus) and this function.
Exception
public void beginScript(java.lang.String script)
throws Exception
script - the script as String.
Exception
public void beginContinuous()
throws Exception
start, it will not stop until finish or
abort is called.
Exception
public void beginFocus()
throws Exception
start, it will not stop until finish or
abort is called.
Exception
public int framesAvailable()
throws Exception
getNextImages are dropped out
as being available.
Exception
public int getSize()
throws Exception
Exception
public int getX()
throws Exception
Exception
public int getY()
throws Exception
Exception
public int getNextImages(int frame_count,
int roi,
Frame[] frames)
throws Exception
beginSequence), the function
returns the frames in sequence out of the sequence of frames
acquired. In the continuous mode (started by beginContinuous),
the function returns the oldest unretrieved frames in sequence. In the focus mode (started
by beginFocus), the function returns the latest unretrieved frame.
frame_count - the index of the frame to retrieve.roi - the index of the roi within the frame to retrieve starting from zero.frames - return the data for the requested frames.
Exception
public void start()
throws Exception
beginSequence or beginScript
or beginFocus or beginContinuous and
end.
Exceptionpublic void finish()
Exceptionpublic void abort()
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||