09-02-2014 11:42 AM
Hello,
I have an array of 2D data(which is the height information of disks taken from a sensor placed in XY plane).
Now i need to extract the Height information for all the disks and need to calculate other info from this height. Has anyone done this sort of exraction before or could help me in getting a solution. Please find the VI attached with the data samples
09-02-2014 11:55 AM
"Array min&max" from the array pallette?
09-02-2014 12:05 PM - edited 09-02-2014 12:13 PM
No that wont help.. It will just give the min and max of the enitre array. I am looking in to height of each disk...
I opened up the block digram for the surface graph but was not able to figure out which vi wasactaully plotting the data. If i could find out probably i can extract the info? I am not sure just guessing...
09-02-2014 12:11 PM
Then use a FOR loop and autoindex over each disk...
09-02-2014 12:15 PM
Thats the real problem.. The disk are not aligned veritically or horizonatlly. Most of the time they overlap (as seen in the digram) and hence it becomes tricky to extract the data corresponding to each disk...
09-02-2014 12:28 PM
09-02-2014 12:32 PM
There is no information that relates to disk number. The scanner/sensor would juxt scan any number of disks kept on the XY plane and gives out a 2D array of data.
I just plotted this 2D data on the surface graph, and the plot was almost accurate. So i believe the one fecade vi's whcih plotted out this information must have the complete information regarding the height data for each disk..
09-02-2014 12:36 PM
Hi Guru,
the height data is in your 2D array.
You need to apply some filtering to your data:
- remove background by threshold comparison, that way you will know the location of your discs.
- find the center for those discs and use this to separate the discs. According to your example VI the discs are NOT overlapping, in the worst case they touch…
09-02-2014 12:49 PM
I agree that the disks wont overlap ( what i meant to say that they are not alligned vertically or horizontally. My bad)
I was trying for the same as suggested by you. let me see how it goes.....
09-03-2014 12:58 AM