LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

superimpose 2 intensity graphs

Hi, I'm trying to do this little project on superimposing 2 intensity graphs together. In my program, I created a random number generator which feeds numbers between 0 and 25 to two intensity graphs through arrays. one of the intensity graphs will show numbers smaller than 20, and the other will show numbers greater than 25 on a color scale. I am trying to merge both intensity graphs into one so that the third graph will be numbers from 0 to 25. anyone have any suggestions?

I am a coop student at a optical imaging lab, we need to superimpose 2 different types of images together from real time scans. I'm trying to identify a specific intensity in one image, cut out the spots in the other image, and superimpose them together. both images have different colorscales.

I am pretty new to Labview so if you can, please help me out.

Thanks
0 Kudos
Message 1 of 6
(3,077 Views)
From looking at your program, all you need to do is add them together. At least in your program, each image is complementary of the other. The filtered pixels in one have values in the other and vice versa. Are there any cases where this won't be true? If so, what do you do with the values from the two pixels?
Randall Pursley
0 Kudos
Message 2 of 6
(3,066 Views)
This looked like fun so I edited your VI.

Please excuse the "butcher job", Crossed wires and superfulous code drives me nuts! (Chill out Ben! It is just an example.)

The modified version (LV 7.1) is include in the attached zip along with a jpg of the code.

In this example you will find that I have used a nested For loop structure to manuipulate the contents of of a pair of shift registers.

The shift registers are inititalized with the "below data" set. The nested for loops index through each data point in the "below data" set looking for a "0" to indicate the candidate should be replaced the the equivelent element from the "above data" set. If an element of the "below data" set is not "0", it is preserved.

After each element ha been checked the merged data is returned.

I hope this helps.

Have fun,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 6
(3,063 Views)
Thanks a lot guys, I'll see what I could do with your suggestions.

Brian
0 Kudos
Message 4 of 6
(3,051 Views)
Hey Ben, could you please tell me how the shift registers work ?
0 Kudos
Message 5 of 6
(3,042 Views)
OK but short answer.

Turn on execution highlighting and watch the code exeute.

Drop some probes on the wires and watch how the data changes in each step.

Shift regitsers store data from one iteration of a loop for the next.

What ever data is wired to the SR's before the loop starts is stuffed in a buffer (SR).

On the first iteraction the data the was put there when loop is started is used.

After that the contents of the SR is changed depending on what is wirede to the "right" SR from inside the loop.

In your example, I keep a "working version" of your data in the SR. I simply decide which part of the data in the SR should be changed and act only on those elements.

Execution Highlighting reveals all!

Watch, learn have fun!

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 6
(3,030 Views)