Ask Your Question
0

How to use with NI-IMAQ c++?

asked 2015-09-14 21:10:16 -0500

Titanium gravatar image

I have a frame grabber from National Instrument to connect camera from photon focus. How can I use opencv to access the camera using Microsoft visual studio?

edit retag flag offensive close merge delete

Comments

total lack of google fu ?

berak gravatar imageberak ( 2015-09-15 05:31:51 -0500 )edit

really can't find any. help me if you can.

Titanium gravatar imageTitanium ( 2015-09-17 01:55:46 -0500 )edit
1

first hit

once you got your imagebuffer, it's just:

cv::Mat m(h,w,type, imageBuffer);
berak gravatar imageberak ( 2015-09-17 02:13:04 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-11-10 22:43:07 -0500

Aj-611 gravatar image

updated 2015-11-10 22:43:55 -0500

Some conversion is require from raw data in the buffer into opencv Mat type. It is crucial to know the data type in buffer (CV_datatype). refer here (http://answers.opencv.org/question/71401/mat-from-buffer/)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-09-14 21:10:16 -0500

Seen: 447 times

Last updated: Nov 10 '15