Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting partial circles in images

I was really thinking more about the centering of the wheels instead of the definition of a partial circle which is what I think you are describing but I'm not sure.

David A. Taylor
0 Kudos
Message 11 of 17
(1,743 Views)

Marianhova

Yes you can convert the code into labview. Simply right click

on the vi and choose open front panel. This will open a new VI.

 

The color of your express VI changes to yellow. Just go to edit and 

choose undo change attributes. There you go you will see the entire

code before you.

0 Kudos
Message 12 of 17
(1,742 Views)

David,

You define the centre of the two circles, and they can be different. Clearly, if you're not sure where in the image the circle you're looking for is the inner circle needs to be small and the outer large. If the circle you're looking for is small you need to ensure it's in the centre so the inner search circle is inside it. 

 

Another way would be to convert it to binary and search for blobs. You can search the image for a circular 'blob' which gives the centre. This could be used for the edge detection as it may be a more accurate method.

0 Kudos
Message 13 of 17
(1,740 Views)

@Yesh and Mariahnova

 

If you are using LV 9.0 (and up), you should have copied the snippet provided in my first post to the BD of your vi. Then a dble-click on the Vision assistant icon would have opened the assistant, showing the code behind.

 

When prototyping an image analysis application, you don't need to open Vision Assistant independently and then go through the process of asking VI creation, defining file destination and so on. A more direct and much simpler solution is to use the assistant from within the VI. The assistant is accessed from the bottom-right of the Vision palette : Vision express.

 

Of course, as usual, once everything has been defined, some cleaning will be required after converting the express VI. This will save processing time and memory footprint.

Chilly Charly    (aka CC)
0 Kudos
Message 14 of 17
(1,711 Views)

 


Mariahnova a écrit :

I played with the edge detector and the spokes confused me. The documentation is pretty weak on this function.

 

Anyway, is it possible to programatically control the location of those spoked wheels? I am brand new at this, but I am assuming that once you have defined a script in the assistant you can convert this to regular LV code like any other Express vi. Is that the case?


The Help for IMAQ Vision is located in the Help > NI Vision for LabVIEW Help...

 

As shown in the extract below, the documentation is accurate and pretty well developped (see the slider on the right side ?)... once you know where to find it ! You should go through the whole Help at least one time to learn all the concepts and possibilities of IMAQ Vision.

 

23476i23D52C7EFD2AC54C

 

Chilly Charly    (aka CC)
0 Kudos
Message 15 of 17
(1,710 Views)

Hi,a similar problem I am facing now is about the shape detecting as in the image attached. 

The black partial moon-like shape is what I am interested in. The right curved edge is a partial circle, and the left curved is a partial ellipse with the minor axis the same length as the radius of the right partial circle. A series of such images are detected. How do I get the radius of the partial circle and the major axis of the partial ellipse? Any help would be appreciated.

 

whs

0 Kudos
Message 16 of 17
(1,560 Views)

Any advice?

0 Kudos
Message 17 of 17
(1,521 Views)