Ask Your Question
0

How to use with NI-IMAQ c++?

asked Sep 15 '15

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?

Preview: (hide)

Comments

total lack of google fu ?

berak gravatar imageberak (Sep 15 '15)edit

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

Titanium gravatar imageTitanium (Sep 17 '15)edit
1

first hit

once you got your imagebuffer, it's just:

cv::Mat m(h,w,type, imageBuffer);
berak gravatar imageberak (Sep 17 '15)edit

1 answer

Sort by » oldest newest most voted
1

answered Nov 11 '15

Aj-611 gravatar image

updated Nov 11 '15

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/)

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Sep 15 '15

Seen: 712 times

Last updated: Nov 10 '15