This article helps developers get started in migrating their FlyCapture 1.x applications to the FlyCapture 2.0 interface.
|APPLICABLE PRODUCTS :
FlyCapture 1.0 SDK •
FlyCapture 2.0 SDK •
Transitioning to FlyCapture 2.0
With the release of version 2.0 of the FlyCapture SDK, users can now program Point Grey cameras using a single cross-platform interface that supports both Microsoft Windows and Linux Ubuntu operating systems. Other key features include support for new IIDC 1.32 features, such as frame buffering and lookup table functionality, and a simplified object-oriented interface aimed to produce a cleaner, more robust code base for developers.
In most cases, a translation layer allows FlyCapture 1.x applications to run against a FlyCapture 2.0 installation. For information about FlyCapture 1.x functions that are not supported in FlyCapture 2.0, refer to the topic Backward Compatibility with FlyCapture 1.x in the FlyCapture 2.0 SDK Help. Any future FlyCapture 1.x releases will provide maintenance enhancements only. New features will be added to FlyCapture 2.x releases exclusively. We encourage FlyCapture 1.x users to upgrade their applications to the new FlyCapture 2.0 class libraries. To assist in this transition, all of the sample applications provided with the FlyCapture 1.x SDK have been re-written to show parallel functionality using the 2.0 interface. An easy way to locate a FlyCapture 1.x sample application and its corresponding version using the 2.0 libraries is to access the FlyCapture SDK Example Source Code page, and perform a comparison for the examples that are of interest.
As a first step, we've provided a side-by-side comparison of the primary library calls in the FlyCapture 1.x example program PGRFlyCaptureTest, and its corresponding example in FlyCapture 2.0, FlyCapture2Test.
||FlyCapture 1.x Library Call
||FlyCapture 2.x Library Call|
Create a camera context.
||Construct a Camera() object and invoke Connect() against it.|
|Initialize the camera.
|Retrieve basic camera information.
|Start the camera and begin streaming images to image buffers.
|Create an image variable containing image data and metadata.
||Construct an Image() object|
|Grab images from the image buffer.
|Convert the last grabbed image to a format for display, such as BGRU.
|Save the image in a specified format.
|Stop the camera.
|Destroy the camera context.
Example programs can also be accessed either from the Windows Start Menu (All Programs > Point Grey Research Inc. > PGR FlyCapture or FlyCapture2 > Examples) or in the \src folder of the PGR FlyCapture or FlyCapture2 installation directory.
|1/12/2010 2:34:36 PM
|1/12/2010 2:54:34 PM