New to the whole forum thing so if I'm posting in the wrong group let me know!
I'm currently developing a Stereo V-SLAM application and run into some problem with grabbing images from a pair of pt grey FMVU-13S2c cameras.
I am running Codeblocks on Ubuntu using c++ and the Flycapture api.
As i have to capture from two cameras my problem lies in the fact that when i have 2 cameras connected the image from the second camera gets corrupted.
//connect right camera and start capture
busMgr.GetCameraFromIndex(1, &guidR);
RightCam.Connect(&guidR);
RightCam.StartCapture();
//create windows to display images.
namedWindow("LeftImage",WINDOW_AUTOSIZE);
namedWindow("RightImage",WINDOW_AUTOSIZE);
//capture images
for (int i = 0; i < k_numImages ;i++)
{
//capture images from cameras
LeftCam.RetrieveBuffer(&leftRaw);
RightCam.RetrieveBuffer(&rightRaw);
//convert captured images to BRG format then to openCV Mat format for display
cout << "Press Enter to exit..." << endl;
cin.ignore();
return 0;
}
If i connect each camera individually or stop capturing and disconnect the camera object before capturing the image from the other camera both images are fine.