z-projection for volume scans #23
Replies: 3 comments 3 replies
-
Hi Peter, I don't know if there is a projection stored in the .fda itself, but it is actually pretty easy to generate these projections - you take the 3D image data and sum (or average) along the z-plane to create a 2D projection image. I can take a look at adding an option to produce these in the code - may be able to take a look sometime this week. In the meantime should be pretty easy to get these yourself by manipulating the Best, |
Beta Was this translation helpful? Give feedback.
-
Hi Mark, import numpy as np fp = 'your_OCT_file_path' # sample: images subfolder == images, images file names == OCTid_slice_imageNR.png normalize arr_all, enhance contrast and scale to grey imagearr_all = ((np.array(arr_new)/ np.max(arr_new) )**5)*255 auto contrast, convert to grey imageim_out = ImageOps.autocontrast(Image.fromarray(arr_all).convert('L'), cutoff=0, ignore=None) Best, |
Beta Was this translation helpful? Give feedback.
-
I've added the ability to extract the projection as a np array with the |
Beta Was this translation helpful? Give feedback.
-
Hi Mark,
great work! very useful to me! Just a question, after the extraction of the images I use the free IOWA segmentation tool and it spits out a projection. It looks like a B&W photo of the retina but is generated from the images in the .fda file. Now is that already within the .fda or does it require some kind of processing? would you know?
The discontinuation of blood vessels indicate transversal eye movements during the scan.
Best, Peter
Beta Was this translation helpful? Give feedback.
All reactions