07-07-2014 10:31 PM
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
Solved! Go to Solution.
07-08-2014 01:19 AM
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
07-08-2014 05:32 AM
As klemen suggested please post an image
07-08-2014 08:04 AM - edited 07-08-2014 08:10 AM
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
07-08-2014 08:24 AM - edited 07-08-2014 08:26 AM
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
07-08-2014 11:27 AM
Thank for suggestion. Can you please give me example with simple array how to mapilute it.
07-08-2014 01:48 PM
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
07-08-2014 03:31 PM
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
07-08-2014 04:47 PM
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
07-08-2014 04:50 PM
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.