Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't parametrize the inner/outer radius in the Annulus ROI

Plaese, can someone tell me why I can't parametrize the inner, outer (bt also start/end angle) in the create roi-->Annulus block?
I'can't set the this values as the result of previous measurements neither with  global variables: the tool loose this setting!

This is very important because the part I'm inspecting may have little changes and I have to go to the customer for every one of this little changes!

I'm using Vision Builder AI 3.0
--
Simone
0 Kudos
Message 1 of 6
(4,332 Views)
Hi Simonerom,
 
I seem to be able to do as you are asking in VBAI 3.0, what parameters are you trying to use?
Is there any chance of placing your script and an example picture on this forum (with an explination of what you are trying to do) and I will have a closer look into it for you.
 
You might find that you need to create a user defined Global and populate that with the desired result.  You can then use that global to parametize the RIO values.
 
Thanx
 
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland
Message 2 of 6
(4,316 Views)
Thanks for he answer, I've attached a test vbai and a test image.
Imagine you want to set an annulus roi over the dark zone around the white central hole.
But the radius of the hole may vary, so the inner radius of the roi must vary itself.

What I do is,
1. find the white circle with its center and its radius
2. set a coordinate system to reposition the ROI
3. Create an annulus ROI, repositioned, with inner radius parametrized with the radius of the previous found circle.

But if I close the block and reopen it I find that the setting for he inner radius has been lost (I find only the current numeric value of the radius).
I've also tried, as you can see in the test vbai, to create and set a global variable holding the radius value, but also using this
variable to parametrize the inner radius takes to the same results.

finally, note that if you parametrize the x/y position of the Annulus with the result of the circle block, or  the global variable, or any other
result value, it works well!

Bye, Simone.
--
Simone
0 Kudos
Message 3 of 6
(4,303 Views)
Isn't there a solution for this? Maybe it is a software bug?

Simone.
--
Simone
0 Kudos
Message 4 of 6
(4,283 Views)

Thanks for notifying us of this Simone. I confirm there is a problem with trying to set the last four parameters describing an annulus ROI (inner and outer radii, start and end angle) to use a previous result. The value is properly stored as part of the step parameters. But if you edit the step again, the value is unfortunately reverted back to use a constant. A corrective action request has been posted (CAR #44A9B2ZN) and we will try to address this into our next maintenance release of the software. Thanks again for the feedback!

 

Nicolas

NI Vision R&D

0 Kudos
Message 5 of 6
(4,276 Views)
I've just noticed that, actually, although if you re-open the block and can't see the parameters, the block will still work with all settings fields parametrized (but only if you do not re-open/save the block after the configuration!).
--
Simone
0 Kudos
Message 6 of 6
(4,210 Views)