LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

redering a 3d image from an intensity stack

Hi Ben,

Thanks again and sorry for the heavy file.

Roberto

0 Kudos
Message 21 of 45
(5,605 Views)

No problem with the size Roberto.

I've got a fiber into my basement so it only took 7 seconds to down-load.

I'll post back on suggestions.

THANK YOU for complying with my request to try. Trying counts high in my book.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 22 of 45
(5,593 Views)

The attached is a mod of your attempt to build the array.

I just used a "build array" to create the 3d array we needed to represent multiple slices.

I also used it to duplicate you slices to test this out.

I also added a custom color scale.

This example requirese a lot of memory and a lot of CPU. Try running it with the front panel minimized to spedd it up a bit.

Post your code with any folow-up questions.

Ben



Message Edited by Ben on 11-04-2007 01:24 PM

Message Edited by Ben on 11-04-2007 01:25 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 23 of 45
(5,574 Views)

By replacing all meassurements below 16 with NaN and adjusting the color scale you get this.

Ben



Message Edited by Ben on 11-04-2007 02:17 PM

Message Edited by Ben on 11-04-2007 02:18 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Download All
Message 24 of 45
(5,565 Views)

Ben,

You are undoubtedly the 3D graph master (proved more than once !!!) .

How should I react when you call me graph Master ?   I feel depressed when looking at your demonstration ! 😉

Chapeau l'Artiste !

Chilly Charly    (aka CC)
Message 25 of 45
(5,551 Views)

Thanks CC but I was just playing with the NaN" trick I learned after I answered the original Q of this thread.

Although I won't have time for this (for another year or so) What I wanted to do was write something that bins the measurelemtns and compose plots of denisity regions.

I just couldn't firure out real fast how to automatically adapt the bins to teh data.

That way regions of high denisty culd be ploted wih low transparency adn vise versa.

The idea would be tht that the less dense stuf would be easier to see through.

Well maybe next year at this time.

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 26 of 45
(5,509 Views)
Thank you very much for your assistance Ben,
 
This is what I wanted to visualize the data in a 3D graph.
With regard to the 3D array. I kept trying and finally was able to build a 3d array programatically. Now I can run different cases and have a 266x647 by n, n is the number of frames I need to construct the solid. The down side of it is that I can only have 78 frames, at that point my computer runs out of memeory.
for now I will keep on trying to make labView run until I get the 300 frames I need. I will post my code later if I have more questions.
 
Thank again for your help.
Roberto
 
0 Kudos
Message 27 of 45
(5,499 Views)

Again, without your code and dat its hard to comment.

1) Make sure you only save the VI with no plts showing in the graph (CC taught me this years ago).

2) Excluding plotted points by substituting "NaN" for the most frequently occuring values also reduces memory demands.

3) If you read each "slice" from a sperate file (or take othe action to reduce the total amount of memeory required) and then close the file before opening the file for the next slice, this will also reduce memory req's.

Could you post a screen-shot of what 78 frames looks like?

and

Are you allowed to tell us what we are seeing?

Again, thank you for the data Roberto!

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 28 of 45
(5,489 Views)

Hello Ben,

 

Thank you for your suggestions for my code.

 

Here is the vi I use to process the image and create the 3D array. I included 5 images, so you can see how it works. I was able to process 107 frames. I also included a shot of the frames processed (107 this time) that you asked me.

 

I am not a programmer; however, I have found LabView very useful in my research, so please forgive me if my style is not very efficient.  

 

Yes, I am allowed to tell you what I’m seeing. I am doing experiments in a pipe. The camera is located almost parallel to the pipe (inclined 10 degrees), viewing the cross section of the pipe. In the pipe there is water and different amounts of air (10 % approx by volume). The last frame shows 2 ellipses. The large one shows the contour of the pipe. The small ellipse shows a dark region, that is air, (an elongated bubble). In these experiments I am trying to visualize the shape of the some of the deformed bubbles in 3D by putting all the frames together.  In fact in previous messages I mentioned I was trying to construct a solid, it is actually not a solid but a bubble (gas).

 

The image 107 frames 2nd.jpeg shows a red ellipse in the region where the bubble is located. It is hard to see the bubble. I have modified the vi you suggested (3d stack_as_82_w_5_frames.vi) on Nov 4th but so far I have not been able to have two transparency values, one for the liquid region and one for the bubble. I am trying to have the entire liquid region with a transparency of 95% and the bubble region with a transparency value of 25%. In this way the bubble can be better visualized. You mentioned something about this in your message of Nov 4th.

Could you please give me some ideas about this?

 

If you have any questions about my codes or the images just let me know. Thanks again,

 

Roberto

Download All
0 Kudos
Message 29 of 45
(5,462 Views)

Here are the vi's. I am only allowed to attach 3 files per message.

Roberto

Download All
0 Kudos
Message 30 of 45
(5,459 Views)