gallantlab / pycortex

Pycortex is a python-based toolkit for surface visualization of fMRI data
https://gallantlab.github.io/pycortex
BSD 2-Clause "Simplified" License
585 stars 137 forks source link

Display only curvature #59

Closed jcolquitt closed 6 years ago

jcolquitt commented 10 years ago

I see in web viewer there is a slider at the top that can be used to completely remove the data layer. Does the webshow function depend on having a dataview object to overlay or is there a way to have web viewer only display curvature data on the fiducial, inflated, and flat views.

cortex.webshow((nib.get_data().T.astype(float),'SUBJECT','identity'))

so instead of this is there a way to bring up just curvature for the given subject without having to create a dataview object from random data or a functional volume?

Also when rendering ROI's, is there a way to bring up the flattened surface with curvature in greyscale without specifying a dataView object? Thanks.

jamesgao commented 10 years ago

Currently, there's no way to display only the curvature without sending in null data. This does sound like a good idea though, so I'll keep this issue open as a reminder.

As for displaying just the flatmap with curvature, you should be able to use this code to pop up the flatmap in matplotlib:

import cortex
curvs = cortex.DataView(cortex.surfs.getSurfInfo("S1"), cmap="gray")
cortex.quickshow(curvs)

You can specify the vmin/vmax in the DataView definition in order to change the contrast.

andrewolaughlin commented 10 years ago

So I assume similarly there's no way to display only the sulcal depth with webshow? (related to my issue #60 )

sulcdepth = cortex.DataView(cortex.surfs.getSurfInfo("S1", "sulcaldepth"))

I can't seem to get a proper dataview or volume data as this vertexdata doesn't have a mask or xfmname

alexhuth commented 10 years ago

Getting any vertexdata to display in webGL is a separate open issue. It might be fixed soon..

On Feb 7, 2014, at 12:20, andrewolaughlin notifications@github.com wrote:

So I assume similarly there's no way to display only the sulcal depth with webshow? (related to my issue #60 )

sulcdepth = cortex.DataView(cortex.surfs.getSurfInfo("S1", "sulcaldepth")) I can't seem to get a proper dataview or volume data as this vertexdata doesn't have a mask or xfmname

— Reply to this email directly or view it on GitHub.

sslivkoff commented 6 years ago

closing because displaying vertexdata now implemented. curvature can also be shown in webviewer by setting data opacity to 0