LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Intensity Map: Can I overlay a asterix or a symbol over a cloud of data points ?

All

I have an intensity map where I display the clouds based on a spectrum. I'd like to display an "asterix" or any kind of symbol on the middle of the cloud or anywere on the cloud based on some calculations that I do. I've seen people do it on LabWINDOWS, I am not very sure how to achieve this in Labview. Any suggestions/help ? Please see attachment. That must have the cloud, but without the symbol.

Kudos are the best way to say thanks 🙂
0 Kudos
Message 1 of 10
(3,567 Views)
You could create a cursor on the intensity graph and set its position programatically with a Cursor.Position property node.
0 Kudos
Message 2 of 10
(3,559 Views)
I forgot to mention one thing. The number of clouds is in the form of a 13 x 13 matrix. So I would require one symbol for every cloud. Is there an elegant way other than using 169 cursors ?

Kudos are the best way to say thanks 🙂
0 Kudos
Message 3 of 10
(3,556 Views)
What?  You don't want 169 cursors?

I do know that LV8 added annotations and their properties are an array of clusters.  But I have not played with it enough to figure out an elegant way to do what you ask.  I feel like it should be possible, but am uncertain of the details.
0 Kudos
Message 4 of 10
(3,551 Views)
"Any suggestions/help ? "
 
Suggestion only! No time to devlop example.
 
Invoke Node >>> Get image
 
Stick that in a picture control.
 
Insert as many symbols as you want.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 10
(3,543 Views)
Another simple method is to overlay a transparent (background) array over the intensity map the size and dimensions of this grid can be programatically set: ie 13x13 where the width and height of each cell is uniform), make this an array of strings and when you write to a cell you will get the overlayed charachers such as *.  There is a performance hit when you overlay controls but PC are fast so unless you want to do this with video imagery it should not be a big problem.  The Picture control does provide your most elegant solution but can be a little tricky to calculate possition (width, height, top, right bottom, left, origin .... why so many conventions?).
 
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 6 of 10
(3,540 Views)

"

The Picture control does provide your most elegant solution but can be a little tricky to calculate possition (width, height, top, right bottom, left, origin .... why so many conventions?).

"
I do not know if I would say it was elegant.
 
Flexible, Challenging, CPU intensive, Lacking UI functionality...
 
Yes!
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 7 of 10
(3,533 Views)
Here is a very quick overlay example.  It assumes a "*" as a marker and has no logic and uses a static grid size 10x10.  I hope monitor resolution scaling will not screw things up (I grouped the controls to minimize this.
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 8 of 10
(3,527 Views)
Hey, don't knock cursors.  Cursors are pretty quick.  ~45ms on my machine (LV8, XP, P4, 3.79GHz).  Coding for them is not terribly complex, either.  See attached example. 
0 Kudos
Message 9 of 10
(3,527 Views)
Jason

Your method is simple and cool. Sorry to have undermined it earlier. I've modified your code so it would work with mine. Thanks a lot.

Kudos are the best way to say thanks 🙂
0 Kudos
Message 10 of 10
(3,442 Views)