11-02-2007 10:13 AM
Hi Ben,
Thanks again and sorry for the heavy file.
Roberto
11-03-2007 10:13 AM
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
11-04-2007 01:23 PM - edited 11-04-2007 01:25 PM
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
11-04-2007 02:17 PM - edited 11-04-2007 02:18 PM
By replacing all meassurements below 16 with NaN and adjusting the color scale you get this.
Ben
11-04-2007 04:30 PM
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 !
11-04-2007 05:48 PM
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
11-04-2007 10:55 PM
11-05-2007 07:09 AM
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
11-06-2007 12:05 AM
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
11-06-2007 12:09 AM
Here are the vi's. I am only allowed to attach 3 files per message.
Roberto