LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

High Density Histogram/Regions

Hey everyone,

I'm trying to compile a histogram and graph that can highlight or display regions of high density.

What I have is an X array and a Y array of data that tells me the density of a graph through a histogram.  The X array has scale values from 0-5 taken from a graph with an X range of 120-4800.  The Y array has scale values from 0-5 as well, but taken from a graph with a Y range of 330-4200.  I'm able to determine where densities over 3 cross, but cannot get it to come up graphically.

In simpler terms, I want to be able to place an array of points (between 0 and 50) on a graph that has an X range from 120-4800 and a Y range from 330-4200.

Thanks for any help or advice.
0 Kudos
Message 1 of 9
(4,369 Views)

Steve,

I am having a hard time visualizing the result but would a 3D surface plot work for this application?  Seems you have entered the third dimension.

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 9
(4,365 Views)
Hey Matthew,

Hmm yea, I was trying to explain it as best I could without having to load my VI and data images that are very large in size.  I can upload example images tho and explain further on from then and hopefully it will clarifiy some things.



This is a scatter plot I get for particles that are present on an image.  As you can see the X range and Y range are different and the shape represents an ellipse from the mask applied to the image.



These are the two histograms I get.  One for the density in terms of X and one in terms of Y.  For intersecting densities greater than two I collected data which was then dumped into an array.  This array consists simply of number, and the array size ranges from 0 to 50  From here I want to insert that array into an empty graph with the X and Y range from the previous graph.  In the first graph there are upwards of 400 particles, but in the second graph that would contain the data from the intersecting histograms there would be roughly 5% of the original, so around 20 particles.

My apologies if this is still unclear.  It sounds good in my head because...well I'm sure all of you can agree that it is easier to explain something than to understand something.  If not, I'll try to gather some data and post it as well.
0 Kudos
Message 3 of 9
(4,356 Views)

Steve,

I sure sounds like you want to use a XY Intensity plot to show your data.  Attached is an image from one of the NI canned (Common Intensity Maps.vi) examples.  Let me know if you agree?

 

 

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
Message 4 of 9
(4,345 Views)
Yes!!!!!

Ahhh, that's it.

I was finally able to reproduce my scatter plot to highlight intermediate points that lined up, but it wasn't as effective as what I think the intensity XY will do.

Thank you very much Matthew.

I'll be sure to let you know how it turns up.
0 Kudos
Message 5 of 9
(4,320 Views)
As you said, it is a canned example.

I believe that since you were able to access it, you still have it.  Could you perhaps attach the VI?

Thanks again.
0 Kudos
Message 6 of 9
(4,313 Views)
Here it is.  Takes a bit to get use to the data format but the data input is a single 2D array that is your data in XY format.  Use the properties to adjust your scales.
 
 
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 7 of 9
(4,305 Views)

Could you please post the vi again for LV ver. 8.0?

 

Thank you.

 

Jae

0 Kudos
Message 8 of 9
(3,986 Views)
0 Kudos
Message 9 of 9
(3,979 Views)