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 (<a href="http://forums.ni.com/attachments/ni/170/282237/3/3d%20stack_as_82_w_5_frames.vi" target="_blank"> 3d stack_as_82_w_5_frames.vi</a>) 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
f_000820.zip:
http://forums.ni.com/attachments/ni/170/282541/1/f_000820.zip
107 Frames.jpg:
http://forums.ni.com/attachments/ni/170/282541/2/107 Frames.jpg
107 Frames 2nd.jpg:
http://forums.ni.com/attachments/ni/170/282541/3/107 Frames 2nd.jpg