Hi,
Has anyone used Bumblebee2 stereo camera with MATLAB ( live video
capture ) ?Please let me know of any correct procedure !! I've tried
it with the following errors:
Versions of products;
MATLAB Version 7.6.0.324 (R2008a)
Flycapture API Programming Reference :Version 1.6 Release Candidate
10Revised October 3, 2006
Following the page:
http://www.ptgrey.com/support/kb/index.asp?a=4&q=218
I was not able to compile the C files inside MATLAB after correctly
configuring all the paths.It gave errors in the Flycapture headers;
>> mex -g -f "pgrmex.bat" matInitFly.c
matInitFly.c
C:\Program Files\Point Grey Research\PGR FlyCapture\include
\pgrflycapture.h(1438) : error C2143: syntax error : missing ')'
before '=' C:\Program Files\Point Grey Research\PGR FlyCapture\include
\pgrflycapture.h(1438) : error C2072:
'flycaptureSaveImage' : initialization of a function
C:\Program Files\Point Grey Research\PGR FlyCapture\include
\pgrflycapture.h(1438) : error C2059: syntax error : ')'
C:\Program Files\Point Grey Research\PGR FlyCapture\include
\pgrflycapture.h(2142) : error C2143: syntax error : missing ')'
before '=' C:\Program Files\Point Grey Research\PGR FlyCapture\include
\pgrflycapture.h(2142) : error C2072: 'flycaptureGetMemoryChannel' :
initialization of a function
C:\Program Files\Point Grey Research\PGR FlyCapture\include
\pgrflycapture.h(2142) : error C2059: syntax error : ')'
I:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'matInitFly.c'
failed.
To compile MEX-files in MSVS 6.0 with MATLAB
used the custom build shipped with the PGR sample code,but it could
not find the MEX binary.Maybe a MATLAB version problem.
The zip files come with built in dlls.But running them either gives
the following error:
>> matInitFly(matGetFlyCount)
flycaptureStart: Invalid video mode or framerate passed or retrieved.
Or caused MATLAB to crash.
========================================================================================
MATLAB ERROR:
Saving minidump to file C:\DOCUME~1\chandan\LOCALS~1\Temp
\matlab_crash_dump.24272.0.dmp
------------------------------------------------------------------------
Segmentation violation detected at Sun Oct 12 13:46:31 2008
------------------------------------------------------------------------
Configuration:
MATLAB Version: 7.6.0.324 (R2008a)
MATLAB License: 161051
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 2)
Processor ID: x86 Family 6 Model 15 Stepping 2, GenuineIntel
Virtual Machine: Java 1.6.0 with Sun Microsystems Inc. Java
HotSpot(TM) Client VM mixed mode
Default Encoding: windows-1252
Fault Count: 1
Register State:
EAX = 00000001 EBX = 00000001
ECX = 00d3e518 EDX = 00000000
ESI = 00000001 EDI = 00d3eb64
EBP = 00d3e520 ESP = 00d3e4fc
EIP = 1a712780 FLG = 00210202
Stack Trace:
[0] PGRFlyCapture.dll:0x1a712780(0, 0x3ff00000, 0x182e7a10,
0x0367c420)
[1] matGetFlyGain.dll:0x15f610b7(0, 0x00d3eb64, 1, 0x00d3ebc4)
[2] libmex.dll:_mexRunMexFile(0, 0x00d3eb64, 1, 0x00d3ebc4) + 129
bytes
[3] libmex.dll:private: void __thiscall
Mfh_mex::runMexFileWithSignalProtection(int,struct mxArray_tag *
*,int,struct mxArray_tag * *)(0, 0x00d3eb64, 1, 0x00d3ebc4) + 73 bytes
[4] libmex.dll:public: virtual void __thiscall
Mfh_mex::dispatch_file(int,struct mxArray_tag * *,int,struct
mxArray_tag * *)(0, 0x00d3eb64, 1, 0x00d3ebc4) + 220 bytes
[5] m_dispatcher.dll:public: virtual void __thiscall
Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct
mxArray_tag * *)(0, 0x00d3eb64, 1, 0x00d3ebc4) + 193 bytes
[6] m_interpreter.dll:__catch$?inDispatchFromStack@@YAHHPBDHH@Z
$0(1305, 0x035363f4 "matGetFlyGain", 0, 1) + 712 bytes
[7] m_interpreter.dll:enum opcodes __cdecl inDispatchCall(char const
*,int,int,int,int *,int *)(0x035363f4 "matGetFlyGain", 1305, 0, 1) +
146 bytes
[8] m_inte