Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Basic image processing - setup help

I'm very new to LabView - so please bare with me.  I'm trying to setup a program to track an object (or set of objects).  I'm using an ImagingSource DFK 21F04 CCD firewire camera.  I have a vi setup where I can read the images coming in from the camera (Vision Acquisition) - I'm trying to turn these images into binary images so that I can use the binary processing function - but I'm running into problems.

 

Do I need to turn my images into binary images in order to use object tracking?  If so, what is the best way to accomplish this on a continuous stream of images? I'm very new to Labview - so the more basic the help, the better.

 

Thanks

SS

0 Kudos
Message 1 of 6
(3,873 Views)
Hello SS,

The camera DFK 21F04 is a monochrome camera, so you can then use the tools of binary images only make a threshold in the image.

Do not forget to change the image indicator of the pallet for binary image, so you only viewed the image binary.

I hope I have helped
0 Kudos
Message 2 of 6
(3,863 Views)

SS,

 

He's right once you threshold an image it becomes binary and in order to view it you need to change the view of the image indicator to binary. You do not need to binarise the image to detect objects but you could.

 

I would suggest looking at the examples that ship with the vision software. These are found in the example finder under the Tools and Modules>>Vision folder. I would look for examples that use IMAQ Count Objects 2 VI. If you threshold before using this VI you should set the replace value to something greater than 1, 255 is probably a good number. If all you are doing is detecting objects and then turning it to a binary image this should not be too difficult but the examples will show different ways to set it up.

 

If you have more questions after getting it started feel free to post those.
Vince M
Applications Engineer
0 Kudos
Message 3 of 6
(3,847 Views)

Hi all!

I am a student using evaluation version of NI Vision assistant 8.6. I have a script file that i want to convert to VI. As you know we cannot do it on a evaluation version. I neither can afford the package right now. Please help me convert the file to VI and C code.

Please mail me on snapy050@gmail.com

Will be very thankful if some one generously helps.

Regards,

Snapy

0 Kudos
Message 4 of 6
(3,816 Views)

Thanks for the on-topic responses (#4 need not apply) - The camera is actually color, not monochrome - and none of the binary image processing tools will work on the image in it's current state, so I'm just looking for a quick easy way to use these tools - I figured that converting the image to binary would be the quickest way to gain access to these processing tools, but I could be wrong...... also I don't know exactly how to convert it to binary (sorry, very very new to labview).  I'll keep trying, but if somebody sees a quick/easy way of trying to do this, any help would be appreciated.

SS

 

 

 

0 Kudos
Message 5 of 6
(3,812 Views)
The best way to turn a color image to binary is to extract one of the color planes from the image using the IMAQ ExtractSingleColorPlane VI and then threshold it using IMAQ Threshold VI. I'm not as familiar with the IMAQ ColorThreshold VI but it may do the same thing as those two combined.
Vince M
Applications Engineer
0 Kudos
Message 6 of 6
(3,789 Views)