Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how to view image in sagittal, coronal and axial view in labview

Solved!
Go to solution

Hi guys

 

Can anyboday help in visualization of images in sagittal, coronal and axial view . For example I have slices of image I want to look into all three plane, how to write code for this.

I will Appreciate your help

 

Thanks 

0 Kudos
Message 1 of 18
(8,707 Views)

Hello,

 

if I understand correctly, you would probably need to extract the same indices for all the slices and combine them into a new image. I assume your slices are already in transverse plane, so you would need to extract the indices for sagittal and coronal plane.

 

If you post at least two images, it would be easier to understand your problem.

 

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
Message 2 of 18
(8,697 Views)

As klemen suggested please post  an image

Message 3 of 18
(8,689 Views)

Thank you for your reply guys 

 

Here I am attaching three axial slices please let me know how we can change index and visualize in sagittal and coronal plane.

 

I really apprecite your help

Download All
0 Kudos
Message 4 of 18
(8,679 Views)

Hello,

 

since the subject is not moving, I would suggest choosing a reference image (the first image, or possibly the slice with the greatest area) and draw a line ROI so that it is coplanar with the desired plane. Loop through all the indices of the line ROI and extract the intensity of the image along the line ROI. Write the intensities in a array/image to the first column (or row). Repeat for all slices incrementing the column/row.

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 5 of 18
(8,669 Views)

Thank for suggestion. Can you  please give me example with simple array how to mapilute it.

0 Kudos
Message 6 of 18
(8,657 Views)

I would consider looping through all the images and using image to array on each one.  Combine the 2D arrays to get a 3D array using build array.  To get a 2D array of one of the other planes, just use index array for that plane.  Convert the 2D array to an image and there you are.  This would probably work best if you are trying to make a dynamic user interface for viewing the images, because most of the work is building the 3D array.  Extracting a 2D array and converting it to an image is pretty quick.

 

Bruce

Bruce Ammons
Ammons Engineering
Message 7 of 18
(8,647 Views)

Thank you for solution 

 

I wrote program like you say but this time labview showing out of memory problem. Is there any limit labview can handle data.

here I am attaching my program with problem pop up

Download All
0 Kudos
Message 8 of 18
(8,641 Views)

If you have too many images, you could easily run out of memory.  What size are your images, and how many do you have?  The 3D array might just be too big to handle.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 9 of 18
(8,631 Views)

Thank you for your reply. 

It work for small size images only. My images are os size of 512 by 512 and there are 512 images in stack.

Do you have any idea for this problem because in matlab it works fine.

0 Kudos
Message 10 of 18
(8,628 Views)