キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/5
3,826件の閲覧回数

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

メッセージ2/5
3,824件の閲覧回数

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 件の賞賛
メッセージ3/5
3,819件の閲覧回数

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 件の賞賛
メッセージ4/5
3,793件の閲覧回数

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 件の賞賛
メッセージ5/5
3,780件の閲覧回数