Skip to content

Instantly share code, notes, and snippets.

View glbrntt's full-sized avatar

George Barnett glbrntt

  • Apple
View GitHub Profile
// Grab_MultipleCameras.cpp
/*
This sample illustrates how to grab and process images from multiple cameras
using the CInstantCameraArray class. The CInstantCameraArray class represents
an array of instant camera objects. It provides almost the same interface as
the instant camera for grabbing. The main purpose of the CInstantCameraArray
is to simplify waiting for images and camera events of multiple cameras in
one thread. This is done by providing a single RetrieveResult method for all
cameras in the array. Alternatively, the grabbing can be started using the
internal grab loop threads of all cameras in the CInstantCameraArray. The
syntax on
set tabstop=2
set shiftwidth=2
set expandtab
set smartindent
set smarttab
set backspace=2