Home  |  Site Map  |  Contact   


Product Support
: Knowledge Base

Our on-line Knowledge Base contains answers to some of the most common support questions. It has information about all PGR products and was developed to help customers resolve product issues. It is constantly updated, expanded, and refined to ensure that our customers have access to the latest information.

Knowledge Base Search

Search For: In:
Any Word All Words Exact Phrase
Show:
 
Transitioning to FlyCapture 2.0
Article 342: Transitioning to FlyCapture 2.0

SUMMARY:
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 • 

ANSWER:

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.

FlyCaptureTest Task FlyCapture 1.x Library Call FlyCapture 2.x Library Call

Create a camera context.

flycaptureCreateContext() Construct a Camera() object and invoke Connect() against it.
Initialize the camera. flycaptureInitialize()
Retrieve basic camera information. flycaptureGetCameraInfo() GetCameraInfo()
Start the camera and begin streaming images to image buffers. flycaptureStart() StartCapture()
Create an image variable containing image data and metadata. struct FlyCaptureImage Construct an Image() object
Grab images from the image buffer. flycaptureGrabImage2() RetrieveBuffer()
Convert the last grabbed image to a format for display, such as BGRU. flycaptureConvertImage() Convert()
Save the image in a specified format. flycaptureSaveImage() Save()
Stop the camera. flycaptureStop() StopCapture()
Destroy the camera context. flycaptureDestroyContext() Disconnect()

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.



RELATED ARTICLES :
KB Article 330: Getting Started with FlyCapture 2.0 and Linux
KB Article 285: Which versions of Visual Studio can be used to build applications using the FlyCapture or Ladybug SDK?
KB Article 267: Developing Microsoft DirectShow applications with FlyCapture.
KB Article 315: Can 32-bit applications communicate with cameras on 64-bit operating systems?
KB Article 356: Low virtual memory may prevent Linux-based 1394 imaging applications from starting.


ARTICLE INFO:
Article ID:
342
Published:
1/12/2010 2:34:36 PM
Last Modified:
1/12/2010 2:54:34 PM
Keywords:
FlyCapture, migrate
Issue Type:
Normal Use



ARTICLE FEEDBACK:
How useful was this article?
less
more
1
2
3
4
5
Additional comments or suggestions?

Go Back Printable Version Email This Article Bookmark This Article

 
 
 

Point Grey Fly Capture
FlyCapture 2.3 Release 18 is available for download!
Download Software