Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

connectivity8 or connectivity4 with e.g. imaqParticleFilter()? (example image is attached)

I am wondering if I should use connectivity8 or connectivity4 to accurately detect some circular markers.

It is important to keep the internal part of each circle/ellipse as accurate as possible.

Attached is one sample image from a typical scene, including a sample image of a binarized circular marker.

Does the connectivity-setting have any noticeable effect?
Download All
0 Kudos
Message 1 of 3
(3,142 Views)
In the images you're analyzing, I don't think it will matter too much which version you use - connectivity4 or connectivity8. With connectivity4 you are telling the algorithm to only consider items to be together if their pixels are adjacent - touching on one of four sides as in the following:

X
XOX
X

On connectivity8, the two items are together if thier pixels are adjacent or 'kitty-corner' - any of the 8 surronding pixels as shown below-

XXX
XOX
XXX

For more in depth discussion I would look at the vision concepts manual, that ships with the vision toolkit. Go to Start >> Programs >> National Instruments >> Vision >> Documentation.
0 Kudos
Message 2 of 3
(3,142 Views)
Thanks, Dustin. I'll just use my current configuration, then (connectivity8).

Torbjørn
0 Kudos
Message 3 of 3
(3,142 Views)