Choose your online store:  EU or  US  Canada  Australia
Point Grey Knowledge Base
Search for...
Exclude unwanted words:
Browse KB Articles
Go Back Printable Version Email This Article Bookmark This Article

Using MATLAB with Point Grey cameras.

KB Number: 10081
Last Revision Date: 5/16/2014 4:31:50 PM
Created Date: 3/5/2014 11:04:44 AM

Customers who wish to use MATLAB with Point Grey cameras have the following two options for acquiring images from the camera:

Image Acquisition Toolbox

The Image Acquisition Toolbox from MATLAB is a full image acquisition software library and includes the Carnegie Mellon University (CMU) camera driver. Most Point Grey FireWire cameras (except Digiclops, Firefly and Firefly 2) are compatible with the CMU driver.

Although Point Grey USB cameras are not compatible with the CMU driver, the Image Acquisition Toolbox can be used with USB cameras through the DirectShow interface. Only IIDC standard image formats are supported. Format_7 modes are not supported.

Wrap Point Grey Software Libraries

The second option that some customers have had success with involves developing MATLAB wrappers for Point Grey DLLs (e.g. pgrflycapture.dll) and libraries that allow them to interface with Point Grey cameras. In this case, the cameras are using Point Grey camera drivers. As a starting point for customers interested in doing this, the following experimental sample code was developed to demonstrate how to use MATLAB to access FlyCapture DLLs while using the FlyCapture camera drivers. This code may be downloaded from here: 

MATLAB PGR FlyCapture Source Code (.zip)

Important Notes

  • We do not support MATLAB and are therefore unable to provide any real troubleshooting for problems encountered running this code. Advanced programming knowledge is recommended.
  • This version was built against an earlier 1.4 Alpha version of FlyCapture. If you are running newer or older versions than this, some compilation errors may occur as a result of function deprecations/changes. See the PGR FlyCapture header documentation for function declaration information.
  • The pgrmex.bat file will need to be modified so that the directory paths are pointing at valid PGR FlyCapture directories on your system. e.g. set FLYCAPDir=C:\PROGRAM FILES\POINT GREY RESEARCH\PGR FLYCAPTURE. Once you have modified it, run the pgrmex.bat file.
  • Compile matGetFlyGain.c using: mex -g -f "pgrmex.bat" matGetFlyGain.c

Go Back Printable Version Email This Article Bookmark This Article