Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

image stacking

hello,
i need some help to stack images one above the other,
in 3d form so that i could generate a 3d view of that image
(for example:stack 2d mri images to generate 3d view),
could some body help me with that,
0 Kudos
Message 1 of 7
(4,778 Views)
Hello,

It sounds like you would want to make use of the 3D Parametric Surface VI that ships with the LabVIEW Full Development and Professional Development systems. This VI is part of the Graphics and Sound palette that installs with those packages. Unfortunately, no algorithm has been developed by NI for building a 3D image from 2-D slices. The 3D Parametric Surface VI has three inputs (X Matrix, Y Matrix, and Z Matrix) that are used to construct and display a 3D image. There are several examples that ship with LabVIEW that demonstrate how you can use this function. These examples can be found by opening the NI Example Finder and searching for "3D." I would suggest starting with these VIs.

As another option, you could perhaps build an array of images and then have a control on your front panel that would allow you to control the image index that you are currently showing on your image display. You would still only be viewing a single image at a time, but you would at least have the ability to view two dimensions of the overall image at a time and then iterate through the third axis. You could also try converting each image into a 2D array and then building a 3D array of pixel intensities. You could then easily rotate the array in 90 degree increments and build a new image based upon the rotation and a depth that you could specify with a slider or numeric control. Rotating at any degree increments other than 90 degrees would require development of an interpolation algorithm.

Try looking at those shipping examples and implementing the 3D array that I described above. Let me know if you have any additional questions.

Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
0 Kudos
Message 2 of 7
(4,761 Views)
i have some image stacked from matlab in .mat format,is it possible
to send the same data to labview,
b`coz i`m finding it difficult to stack the same in labview,
0 Kudos
Message 3 of 7
(4,738 Views)
i have some image stacked from matlab in .mat format,is it possible
to send the same data to labview,
b`coz i`m finding it difficult to stack the same in labview,
0 Kudos
Message 4 of 7
(4,738 Views)
Hello,

I searched through the NI KnowledgeBases for .mat conversion and found the following documents:

Can I Import Data from MATLAB to LabVIEW or Vice Versa?
http://digital.ni.com/public.nsf/websearch/2F8ED0F588E06BE1862565A90066E9BA?OpenDocument

Discussion Forum - Does there exist a .mat to LabVIEW converter?
http://forums.ni.com/ni/board/message?board.id=170&message.id=18215&requireLogin=False

Take a look at those documents and let me know if you have any additional questions.

Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
Message 5 of 7
(4,719 Views)
thanks for suggestion,

i would like to know how i could visually represent that i have in an in an 3d array of matrix visually,
0 Kudos
Message 6 of 7
(4,674 Views)
Hello,

Have you tried installing the LabVIEW 3D Picture Control Evaluation Software? This software is only available as evaluation software and is not supported by National Instruments, but it may provide some of the functionality that you are looking for. You can find the installer for this software at:

LabVIEW 3D Picture Control Evaluation Software
http://zone.ni.com/devzone/conceptd.nsf/webmain/9672f024704de89086256ed100620a56?OpenDocument

Try downloading and installing that software. Other than this and the suggestion that I made previously regarding the assembly of a 3D array of pixel points, there is not any built-in functionality for displaying/rotating 3D images in LabVIEW.

Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
0 Kudos
Message 7 of 7
(4,652 Views)