|
Re: OpenCV and libdc1394: msg#01223lib.opencv
--- In OpenCV@xxxxxxxxxxxxxxx, Mark Asbach <asbach@...> wrote: > > Hi Cornelius, > > > I want to use libdc1394 to grab images from my imitech-1394 camera > > into OpenCV. > > One question on your setup: Do you call libdc1394 yourself or do you > use HighGUI configured with libdc1394? > > > Is there any easy way to make OpenCV and libdc1394 work properly > > together? > > Didn't try myself, but it is meant to work together ... May be you > should contact the authors of cvcap_dc1394.cpp directly (email > addresses are given in the source code). > > Yours, Mark > -- > Dipl.-Ing. Mark Asbach Tel +49 (0)241 80-27677 > Institute of Communications Engineering Fax +49 (0)241 80-22196 > RWTH Aachen University, Germany http://www.ient.rwth-aachen.de > I admitadly don't fully understand how lib1394 stuff works but I am using it along with openCV 9.7. I've written a wrappers class for the lib1394 functions that I have had very good luck with so far. You may need to change some of the #defines for your cameras but you can get it here www.cs.rpi.edu/~meisne/camfwire.tgz along with other scrounged-up/hacked-together code that might be usefull. here's and example of how you might use it: #include "camfwire.h" #include <cv.h> //allocate storage for the image rgbBuffer0 = new unsigned char[3 * bufferSize]; rgbBuffer1 = new unsigned char[3 * bufferSize]; //Set up the cameras FWCam *fwCamera0 = new FWCam( 0 , rgbBuffer0 ); FMCam *fwCamera1 = new FWCam( 1 , rgbBuffer1 ); fwCamera0->init(); //open the ports fwCamera1->init(); IplImage* LeftImage; IplImage* RightImage; ......... //Read a frame fwCamera0->grabFrame(); fwCamera1->grabFrame(); //Convert to an IplImage cvSetImageData(LeftImage , fwCamera0->imagePtr, imgSize.width*3); cvSetImageData(RightImage, fwCamera1->imagePtr, imgSize.width*3); -EM Change settings: http://www.yahoogroups.com/mygroups, select Get Emails (get all posts) Daily Digest (one summary email per day) Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe@xxxxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | use 'cvGoodFeaturesToTrack' with a mask: 01223, kawimns |
|---|---|
| Next by Date: | avi with sound: 01223, Sagrãst |
| Previous by Thread: | Re: OpenCV and libdc1394i: 01223, Mark Asbach |
| Next by Thread: | Re: Re: OpenCV and libdc1394: 01223, Mark Asbach |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |