LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Comparing and grouping Array Values

Hello, I am relatively new to LabVIEW. I am currently analysing areas of individual particles using particle analyses. I am then outputting the results into a 1D array and sorting the array in ascending order. The size of the array changes depending on the image being analysed. What I want to do is search the array and group values which are similar and within a tolerance of say +/- 0.2. The number of groups need to be able to change automatically depending on the image being analysed.  Is there an easy way of doing this task? Help would be greatly appreciated.

 

Rob

0 Kudos
Message 1 of 5
(3,133 Views)

Hi Rob,

search the min value of your array and divide it in groups with your tolerance. Then run through your array and sort your points into the correct group.

Maybe the history function can also work for you.

 

Hope it helps.

Mike

Message 2 of 5
(3,131 Views)

Hi Mike,

 

Thank you for your reply.

 

How can I sort the values into the correct group? I have attached my code.

 

Many Thanks

 

Rob

0 Kudos
Message 3 of 5
(3,126 Views)

Hi Rob,

please attache your picture the next time directly. Thanks. 

What do you want to do with the result? Did you see the History function?

 

Mike

0 Kudos
Message 4 of 5
(3,100 Views)

Mike

 

Sorry for that. What I would like to do is view each group of particles independently in the image. For example view particles in the image corresponding to group 1 only. Then analyse the shape those particles make. Then view particles in group 2 only and analyse the shape they make using shape matching. Any ideas.

0 Kudos
Message 5 of 5
(3,087 Views)