User`s guide
x Contents
Working with Acquired Image Data
7
Image Acquisition Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
Bringing Image Data into the MATLAB Workspace . . . . . . . 7-3
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3
Moving Multiple Frames into the Workspace . . . . . . . . . . . . 7-4
Viewing Frames in the Memory Buffer . . . . . . . . . . . . . . . . . 7-6
Bringing a Single Frame into the Workspace . . . . . . . . . . . 7-10
Working with Image Data in MATLAB Workspace . . . . . . . 7-11
Understanding Image Data . . . . . . . . . . . . . . . . . . . . . . . . . 7-11
Determining the Dimensions of Image Data . . . . . . . . . . . . 7-12
Determining the Data Type of Image Frames . . . . . . . . . . . 7-15
Specifying the Color Space . . . . . . . . . . . . . . . . . . . . . . . . . 7-16
Viewing Acquired Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-22
Retrieving Timing Information . . . . . . . . . . . . . . . . . . . . . . . 7-23
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-23
Determining When a Trigger Executed . . . . . . . . . . . . . . . . 7-23
Determining When a Frame Was Acquired . . . . . . . . . . . . . 7-24
Determining the Frame Delay Duration . . . . . . . . . . . . . . . 7-25
Using Events and Callbacks
8
Using Events and Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2
Using the Default Callback Function . . . . . . . . . . . . . . . . . . . 8-3
Event Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5
Retrieving Event Information . . . . . . . . . . . . . . . . . . . . . . . . . 8-8
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-8
Event Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-8
Accessing Data in the Event Log . . . . . . . . . . . . . . . . . . . . . 8-10