主要内容

Getting Started with the Image Acquisition Tool

This section describes an example of the basic workflow of using the Image Acquisition Tool to preview, configure, acquire, and save image data. You don't need to do every step shown here, and you can change the order of some steps.

  1. Decide which device you want to work with.

    TheHardware Browsershows the image acquisition devices currently connected to your system. If the device you want to use is not connected to your system, plug it in and then selectTools > Refresh Image Acquisition Hardwareto display the new device in theHardware Browser.

  2. Choose the format to work with.

    The nodes listed under the device name are the formats the device supports. They may correspond to the different resolutions and color spaces that your device supports, or to different video standards or camera configurations. This information comes from your device adaptor. Select the format you want to use.

  3. 精准医疗view to check that the device is working and the image is what you expect.

    Click theStart Previewbutton.

    If necessary, physically adjust the device to achieve the desired image area, or use theRegion of Interesttab to define the acquisition region.

  4. Decide how many frames you want to acquire.

    The number of frames that will be acquired when you start the acquisition is dependent on what is set in theFrames Per Triggerfield on theGeneraltab and theNumber of Triggersfield on theTriggeringtab. For example, if you setFrames Per Triggerto4andNumber of Triggersto2, the total number of frames acquired will be 8.

    If you just want a snapshot of one frame, leave the default settings of1in both of those fields. If you want a specific number of frames, use the fields to set it.

    Alternatively, you can set the tool to acquire continuously and use the buttons in the精准医疗view Windowto manually start and stop the acquisition. This is discussed in a later step.

  5. Set any general or device-specific parameters you need to set, on those tabs of theAcquisition Parameterspane, or use the default settings.

  6. Choose your log mode, which determines where the acquisition data is stored.

    On theLoggingtab, use theLog Tofield to choose to log to memory, disk, or both. Disk logging results in a saved VideoWriter file. If you choose memory logging, you can export your data after the acquisition using theExport Databutton on the精准医疗view Window.

    For more information on logging, see the Help for theLoggingtab in theDesktop Helppane in the tool.

  7. Start the acquisition by clicking theStart Acquisitionbutton.

    ——如果你设置Trigger Type(on theTriggeringtab) toImmediate, the tool will immediately start logging data.

    ——如果你设置Trigger TypetoManual,单击Trigger按钮,当你want to start logging data.

  8. Stop the acquisition.

    ——如果你设置Frames Per Trigger(on theGeneraltab) to1or any other number, your acquisition will stop when that number of frames is reached.

    ——如果你设置Frames Per TriggertoInfinite,单击Stop Acquisitionbutton to stop the acquisition.

    Note that you can also clickStop Acquisitionto abort an acquisition if number of frames was specified.

  9. Optionally you can export data that was saved to memory.

    You can export the data that has been acquired in memory to a MAT-file, the MATLAB Workspace, VideoWriter, or to the Image Tool, Image File, or Movie Player tools that are provided by the Image Processing Toolbox™ software using theExport Databutton. For more information, see the “Exporting Data” section of theDesktop Helpon the精准医疗view Windowin theDesktop Helppane in the tool.

  10. Optionally you can save your configuration(s), using theFile > Save ConfigurationorFile > Export Hardware Configurationmenus. For more information about these commands, see the “Image Acquisition Tool Menus” section of theHelpon theHardware Browserin theDesktop Helppane in the tool.