LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

redering a 3d image from an intensity stack

Pretty cool Greg.  I was just doing a quick imaging session so the intensity values are pretty small.  What you talked about is exactly what I want to do, but ideally everything should be done in LabVIEW.  I guess I may need to resort to additional software such as that Voxx program if it isn't possible.
0 Kudos
Message 11 of 45
(6,982 Views)

I don't know if this helps but I did have fun looking at the data. Smiley Very Happy

The images below illustrate the results of running your data through the code shown.

Warning!

You do NOT want to watch the FP as the plot is built... so... minimize the FP before running this VI.

With the FP open it took about 38 minutes on a 2GHz laptop with 1G memory.

With the FP closed, the code runs in about a minute!

Zooming, dragging and rotating also takes about a minute.

A top of the line multi-core processor would probably fair better.

 

Ben

Message Edited by Ben on 10-19-2006 08:26 PM

Message Edited by Ben on 10-19-2006 08:27 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 12 of 45
(6,975 Views)
Now that I see these images in the light of day...
 
I have to say that they looked much better on my laptop in the dark.
 
If I get a chance I may toss in a custom color scale to bring out the features.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 13 of 45
(6,948 Views)
Very nice Ben!  I managed to recreate this vi, but I still have a few questions.  You're using a lot of unfamiliar functions so I'm not sure exactly how to go about making changes.
 
1. How do I rotate the image?
2. How do I zoom in/out and export the image nicely in the way you have on the forum post.
3. How do I adjust the intensity scale and corresponding color map?
 
Thanks a bunch,
Anthony
0 Kudos
Message 14 of 45
(6,942 Views)

Thanks Anthony,

I am glad this may help.

 
1. How do I rotate the image?
 
Using the operate tool (little hand with pointing finger) to drag left-right or up-down on the 3d plot.
 
2. How do I zoom in/out and export the image nicely in the way you have on the forum post.
 
Still using the operate tool do a "shift-right-click" to drag image in graph. "Alt-right-click" to zoom in or out.

What I posted where just screen shots cropped down in paint and saved as jpg.

See reply #7 of this thread to learn how to import activeX object into PowerPoint
 
 
3. How do I adjust the intensity scale and corresponding color map?
 

Starting with reply #7 of this thread

http://forums.ni.com/ni/board/message?board.id=170&message.id=143663&jump=true

to see an example that uses custom color mapping.

What I posted where just screen shots cropped down in paint and saved as jpg.

I hope this helps!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 15 of 45
(6,929 Views)
Hey Greg,
 
I decided to give Voxx a try to test out its features.  How did you go about exporting the array of data and loading it into Voxx?  Thanks.
0 Kudos
Message 16 of 45
(6,788 Views)
Any program that will write out a multipage TIFF is suitable, but I find ImageJ easy.  Load in the sequence of images (presumably PNG or similar), and then save as a TIFF file, which exports a multipage TIFF, exactly what Voxx wants to read in.
0 Kudos
Message 17 of 45
(6,785 Views)

I have a large data set (647[x] x 266[y] x 300[z]) that I want to plot in 3D. I have tried to build a 3D array but so far I haven’t been able to do so. I am using two for loops and one while loop)

 

I have used in the past intensity plots and the data looks very good, but this time I have many intensity plots that I want to visualize. I want all my frames to be displayed at the same time and in this way reconstruct a solid.

 

I found in the NI forum this link posted by Antony (AntLee29); I think he is working in a project that is very similar to mine. I built the vi suggested by Ben. Unfortunately, I have not been able to make this vi work; the last invoke node appears to have an error.

The error message is: “One or more required inputs to this function are not wired or are wired incorrectly”

I checked the help file for this item and it says that the following parameters are needed:

 

xMatrix As Variant

2D array of X data

yMatrix As Variant

2D array of Y data

zMatrix As Variant

2D array of Z data

wMatrix As Variant

 

I have a variant type as the input into these matrices but the error is not cleared. Can anyone give me some assistance on this issue?

Thanks in advance,

Roberto

 

0 Kudos
Message 18 of 45
(6,561 Views)

Hi Roberto,

Please post your code along with the data you are trying to plot.

We could go back and forth for days if we stick just talking.

But if you post your code (and data) we should be able to get you moving.

Thanks,

Ben

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

The 3D parametric surface plot vi contains the code suggested by you Ben. I have not been able to construct the 3D array so I am reading (or trying to I should say) the data available from Anthony (Mouse data, 256 x 256 x 100 array). I posted this figure because even the compressed file of the vi is 7MB so it is more than the mail system allows me to post

I am also including in the 5 frames and mouse data vi some data that I got from five different frames. Each frame is a 266 x 647 array, I am only showing 5 frames but I can have up to 300 frames in order to reconstruct the solid.

 

Thanks,

Roberto

 

 

 

3D parametric surface plot vi

 

 

Download All
0 Kudos
Message 20 of 45
(6,543 Views)