Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Extract a Circular ROI

Message Edited by vineet123 on 01-07-2009 02:17 PM
0 Kudos
Message 11 of 23
(3,788 Views)

thanks for reply,

 

I am posting the code here....

 

Vineet

0 Kudos
Message 12 of 23
(3,789 Views)
Can you post it for lv 8.0 or a screen shot of the vi?
0 Kudos
Message 13 of 23
(3,774 Views)

Hi,

 

Thanks for the reply. I am posting the code as well as the snap shot of my vi.

 

Vineet Agrawal

Circular ROI Extraction

0 Kudos
Message 14 of 23
(3,765 Views)

Hi,

 

In my code please ignore the first circle detected. I will use that circle also once i get through with one circle.....

Waiting for your reply

 

Vineet 

0 Kudos
Message 15 of 23
(3,750 Views)

Your Annulus cluster is being wired wrong.

 

The entries from top to bottom are Center X, Center Y, Radius Inside, Radius Outside......

 

You are telling it that the radius inside is some value X whereas the radius OUTSIDE (Which must be larger) is zero.

 

This is where your error is coming from.  Wire the Radius to the fourth terminal from the top and it should work.

 

Shane.

Message 16 of 23
(3,741 Views)

a lot of thanks...

I got it right..........

0 Kudos
Message 17 of 23
(3,731 Views)

Hello,

 

I'm also trying to extract an circular ROI,

after the extraction I want to binarize the image, only my threshold value

moves because of the black background.

Is it possible to onely binarize the extracted circular ROI?

or must it always be a square?

 

Greetz,

 

Chantal

0 Kudos
Message 18 of 23
(3,172 Views)

Do you mean you want an image having the circular part alone in binary format and the rest of the image in grayscale???

 

Instead of the same image you can extract a circular roi as explained by andrew in this thread and extract the image and apply threshold. The image if extracted will be a rectangle

0 Kudos
Message 19 of 23
(3,169 Views)

This is what I meant. Circular roi and circular masked region extraction

 

18349iB39BE4845EFFCC82

 

 

18351i69C5D76931185F24

0 Kudos
Message 20 of 23
(3,168 Views)