-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NSD dataset] Flat image shows up in wrong orientation #488
Comments
Hi @uhussai7 — could you share a screenshot? |
can you tell which way is up (superior) on each hemisphere? it might be a transpose of the x and y coordinates instead of a rotation. |
I don't know that immediately, but let me see if I can figure it out, will comment back. |
Looking at this a little more I think you're right, it's a rotation. Assuming you're plotting a single EPI volume here, the bits with lots of dark red and blue voxels are likely dropout areas near the ear canals and sinuses, and so should go on the bottom. I haven't actually used NSD before — do they supply the flatmaps directly as gifti files, or are you drawing them from the freesurfer directories? If they're giftis, I think you should probably just create copies that incorporate a 90° CCW rotation and then import those to pycortex. If they're coming directly from freesurfer, I would be confused, since they should come in the format that pycortex expects. |
Okay so let me just outline the steps I carried out to see if it offers any clarity.
Please note that the path for freesurfer for NSD can be seen here https://natural-scenes-dataset.s3.amazonaws.com/index.html#nsddata/freesurfer/subj01/surf/ And the volume path is |
An update: If I make the following change in
I seem to get the correct result which is attached below. To clarify, I commented out "Reorder axis..." and "Flip Y axis..." and just made flat=pts. Not sure why this works though... |
The shape/orientation of the most recent image as posted above is correct (you can check against https://natural-scenes-dataset.s3.amazonaws.com/nsddata/inspections/surfacevisualizations/subj01flat_curvature_subj01.png) In preparing the various flattened surfaces, we did perform some rotations and such. So I believe what is happening is that we may have diverged from some internal FreeSurfer convention. It looks like the solution above could be workable; if not, we can look more deeply and make some tweaks |
I have met another problem, how can I add specific ROI visualization, like V1,V2,V3. Following codes above, I can not get the ROI labels |
I use the following code,
vol_data = cortex.Volume(np.moveaxis(np.moveaxis(test_data,0,-1),0,1), subject, xfm) cortex.quickflat.make_figure(vol_data,recache=1) plt.show()
But I do not get the nice symmetrical flat maps. Instead on the left side I see an image where the medial side is to the far left. On the right side I see an image where the posterior side is at the top of the image. I am using the flat maps from the NSD dataset (https://registry.opendata.aws/nsd/).
The text was updated successfully, but these errors were encountered: