Support Support Home » Vision Libraries » MathWorks_MATLAB

MathWorks MATLAB

Overview

MathWorks® is the leading developer and supplier of software for technical computing and Model-Based Design.

The MATLAB® product family provides a flexible environment for solving complex imaging problems in a wide range of applications including scientific imaging, medicine and biotechnology, aerospace and defense, security, and machine vision. Image Acquisition Toolbox™ enables users to acquire images and video directly from cameras into MATLAB and Simulink. Image Processing Toolbox™ and Computer Vision System Toolbox™ products provide algorithms and tools for building image processing, video processing, and computer vision applications.

Installation

Matlab (R2014a)

  1. Install Matlab software.
  2. Install the XIMEA API Software Package , which contains the XIMEA GeniCam GenTL Producer .
    Note: Installation is not needed on products with pre-installed software packages (e.g. in CURRERA-R Starter Kit)
  3. Open Matlab and install the Genicam Interface according to the guide described on the Installing the Support Packages for Image Acquisition Toolbox Adaptors Mathworks support page.
  4. Restart PC.

Matlab (R2013b) and earlier

  1. Install Matlab software.
  2. Install the XIMEA API Software Package , which contains the XIMEA GeniCam GenTL Producer .
    Note: Installation is not needed on products with pre-installed software packages (e.g. in CURRERA-R Starter Kit)
  3. Open Matlab and run the installgenicam.m file from the C:\Program Files\MATLAB\R2014a\toolbox\imaq\imaqextern folder.
  4. Restart PC

Setup

The Image Acquisition Tool is a graphical interface for rapid hardware configuration, image acquisition, and live video previewing. The preview window, as shown here, reflects adjustments made to the Ximea camera properties and provides a quick start in the development of image processing systems.

Example

The toolbox has a comprehensive set of functions for command line programming of tasks such as device connection, image data acquisition, to adjust acquisition parameters and more. The code below shows how to connect to a Ximea camera to acquire data:

% Access an image acquisition device
vidobj = videoinput('gentl', 3, 'BGRA8Packed');
% List the video input object's configurable properties.vidobj.FramesPerTrigger = 50;
% Open the preview window
preview(vidobj);
% Data acquisition
start(vidobj);
stop(vidobj);
%  Cleanup the image acquisition object and the MATLAB® workspace delete(vidobj);
clear vidobj;

Documentation

Visit the Image Acquisition Toolbox support page.

USB3 Vision tested