Using NI IMAQ and IMAQ Vision with LabWindows/CVI 6.0...
I have some acquisition code that uses IMAQ img functions to set up a
triggered image acquisition and stores the image into an 1D unsigned char
array buffer.
I would now like to add code that uses the IMAQ Vision functions. The IMAQ
Vision function use an Image data type, which from what I can glean from the
..h files, is a structure.
Is it possible to convert the 1D unsigned char array image buffer to an
Image? How would I do this?
An inefficiant brute-force way would be to write the image to a BMP file
from IMAQ using imgSessionSaveBufferEx, then read the same file back in
using IMAQ Vision imaqReadVisionFile. I am hoping there is a more elegant
way to perform the conversion in memory without needing to write disk files.
Thank you,
-------------
Robert Rafuse
Etec, Inc.
tel: (978)531-5025
e-mail: brafuse@etec-inc.com
web: http://www.etec-inc.com