Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Particle Orientation Modification

Solved!
Go to solution

Hi,

 

I'm trying to modify ni's Particle Orientation Example, so I'll be able to extract additional data from it.

I've tried to modify the "unbundle" function in the loop for the new data, but it's impossible to extend the "unbundle" tool.

Any suggestions?

 

Thank you, 

0 Kudos
Message 1 of 7
(3,696 Views)

You can use a reshape array and convert it into a 1d array

 

20201i48375303A83DE0BF

 

 

 

0 Kudos
Message 2 of 7
(3,683 Views)

***Double post***

 

 

20203i12ABEFC7CA60BFC5

 

And if you want to unbundle it and use it you can also avoid the for loop

 

 

 

0 Kudos
Message 3 of 7
(3,682 Views)

Thanks for your approach Muks, but will I still need the analysis and the option to choose the background (i.e... white on black, black on white, and etc...). So I think I still need the for loop for that, don't I?

 

0 Kudos
Message 4 of 7
(3,674 Views)

Also, just for curiousity, why do they subtract 25 from the x center of mass in the example (inside the for loop)? I wonder if an ni person could answer that.

0 Kudos
Message 5 of 7
(3,671 Views)
Solution
Accepted by topic author simply_me

You have define your own cluster size in array to cluster. Right click the array to cluster and define the same.

 

20211iCF188636C535A19E

Message 6 of 7
(3,654 Views)

The 25 is subtracted so that the numbers can be overlayed in the image properly. Change the number to say 100 and you will change the overlayed test to change. The 25 is subtracted from the centre of mass x.

Message 7 of 7
(3,653 Views)