cam.cpp File Reference

contains functions for initiatlizing, acquiring, and deinitializing the frame grabber and camera. More...

#include "fcdynamic.h"

Functions

const unsigned long * get_mem ()
 Returns a pointer to buffer memory allocated by the frame buffer.
int init_cam (Fg_Struct **grabber, int memsize, int buffers, int camlink)
 Initializes the framegrabber and camera.
int acquire_imgs (Fg_Struct *fg, int *seq, int seq_len)
 Transfers the initial region of interest (ROI) information to the frame grabber.
int deinit_cam (Fg_Struct *fg)
 Stops grabbing images and frees resources associated with the frame grabber.


Detailed Description

contains functions for initiatlizing, acquiring, and deinitializing the frame grabber and camera.


Function Documentation

int acquire_imgs ( Fg_Struct *  fg,
int *  seq,
int  seq_len 
)

Transfers the initial region of interest (ROI) information to the frame grabber.

acquire_imgs tells the frame grabber to start grabbing an infinite number of images. This function will also write the ROI parameters to the frame grabber. The active ROIs will become active on the camera in the order that seq lists them. After cycling through the list, the sequence repeats itself from the beginning. A seq cannot exceed 4,096 entires and seq_len must equal the number of entries in seq.

Parameters:
grabber an initialized Fg_Struct object defined in the Silicon Software API
seq the sequence specifying when a ROI is active
seq_len the length of seq.
See also:
roi.cpp

int deinit_cam ( Fg_Struct *  fg  ) 

Stops grabbing images and frees resources associated with the frame grabber.

deinit_cam stops the frame grabber from acquiring images and frees the resources used by the frame grabber.

Parameters:
grabber an initialized Fg_Struct object defined in the Silicon Software API

int init_cam ( Fg_Struct **  grabber,
int  memsize,
int  buffers,
int  camlink 
)

Initializes the framegrabber and camera.

init_cam performs the necessary initialization routines prior to acquiring images. memsize should equal the image width x image height x buffers. Although this is not enforced, undesired behavior may result.

Parameters:
grabber an uninitialized Fg_Struct object defined in the Silicon Software API
memsize the image buffer memory size in bytes
buffers the number of buffer to divide the memsize bytes into
camlink the camera link type as defined in the Silicon Software API
Note:
camlink is typically set to FG_CL_DUALTAP_8_BIT in order to maximize the number of pixel information that can be sent over the cable (physically) connecting the framegrabber and camera.


Generated on Thu Jan 29 21:50:48 2009 for High Speed Vision System by  doxygen 1.5.8