Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

ROI descriptor causing error

I have generated an array of ROIs (roi descriptor of circles) and wanted to chagne the radius of the circles. So I have a for loop passing in the array and changes the radius one by one using Convert ROI to Annulus>change the value>Convert Annulus to ROI back to ROI descriptors again.


The result however is rather unexpected. The output is wrong. The values for global rectangle are changed from eg 51 to -2147483587. I know changing the radius would definitely changes the global rectangle but the outcome is totally off the chart. What is the cause of this?
0 Kudos
Message 1 of 2
(3,001 Views)
Spent some time checking and debugging and finally found out the problem: the value entering the IMAQ Convert Annulus to ROI was "NaN". So problem solve, please ignore this thread. 🙂
0 Kudos
Message 2 of 2
(2,998 Views)