Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Image Buffer structure

Hmm.... I'm trying to write apps to display images snaped from PCI1411 board. My previous method to do this was writing bmp file to hdrive and the redisplay it. This is very slow. Examples of doesn't work properly. Windows API examples doeasn't display properly. Imaq drive 2.6. Is anywhere some examples of implementation of displaying from buffer to any VCL component. what is the structure snaped image to buffer? thanks for help
0 Kudos
Message 1 of 4
(3,336 Views)
wczesny,

What examples were you looking at? When you say that they were not working properly, what behavior were they exhibiting?

You may want to try downloading and installing the most recent NI-IMAQ driver (3.0), which is available at:

NI-IMAQ Version 3.0 for Windows 2000/NT/XP
http://digital.ni.com/softlib.nsf/websearch/C8FAC1A56DD469CA86256EB6007284B5?opendocument&node=132060_US

Regarding the structure of the image itself, each image consists of the image area surrounded by a border which ensures the byte-length of each line of the image. If you use one of the image-to-array IMAQ functions, the border is automatically discarded, leaving only the image itself.

There are a number of image display examples available on our website. You can browse
some of the examples by going to:

Search Example Code
http://search.ni.com/query.html?col=alldocs&qp=%2Bcontenttype%3AExample&lk=1&qt=%2Bimage+%2Bdisplay+%2Bbuffer&layout=Example

Regards,

Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,336 Views)
YEah, Almost all are LabView or LABwindows/cvi. I am looking for example written for Borland C++. I want to create standalone application. All examples display image white-black, interlaced. 😞 Taht why need working example. Btw, any standard components and leads will be nice. Who can help me find the solution ?!
0 Kudos
Message 3 of 4
(3,336 Views)
Hello,

The examples that make use of CVI or Visual C++ use functions that should work in Borland as well. However, this code has not been tested in Borland C++ as National Instruments does not officially support the use of Borland C++. While these examples are not guaranteed, they may still work.

Take a look at the examples found with the following search. They may have to be adjusted for use in the Borland compiler, but they might work.

http://search.ni.com/query.html?col=alldocs&qp=%2Bcontenttype%3AExample&lk=1&qt=%2Bvisual+%2Bc+%2Bimage&layout=Example

You can also check the other Discussion Forum posts that make use of Borland C++. I have included a link to some of these below.

http://exchange.ni.com/servlet/ProcessRequest?RHIVE
ID=101&RPAGEID=105&RHIDETAG=TRUE&UQUESTION_0=%2Bborland+%2Bimaq&UQUESTION_S=1

Take a look at those two links and let me know if you have any additional questions on this issue.

Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,336 Views)