Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

CIN for image processing example???

Hi; Can anybody tell me how can I create a CIN for image processing and pass the results to Labview Imaq.
Let say I want to negate a binary image (I know Labview has this, but this is just "simplification" of the question), so I will pass the input image and destination image to the CIN and get the output or destination image and can process this in Labview.

Any example is very much appreciated.

Regards
Hamid
(EMail: hamid_yazdi@fmo.com)

PS1: I know that I can convert the image to 2D and do it in Labview, but this is very slow!
PS2: It may be better to do it using dll, any help or example on that will be also appreciated
0 Kudos
Message 1 of 2
(3,175 Views)
Hamid,

There is a function in IMAQ that will give you a pointer to the beginning of the block of memory that the image is stored in. This pointer can be passed to a CIN or DLL. As long as you know the format of the image, you should be able to write a simple formula that gives you the location of any pixel within the image.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 2
(3,175 Views)