Skip to content

pial to vtk conversion #1

@soichih

Description

@soichih

app-freesurfer currently does a small post processing to convert lh.pial and rh.pial into .vtk format so that it can be loaded by browser to allow some basic / quick visual examination of the freesurfer output.

#generate brain vtk model (for visualization purpose)
if [ -f "output/surf/lh.pial" ]; then
    mris_decimate -d 0.1 output/surf/lh.pial lh.10.pial
    mris_convert lh.10.pial lh.10.vtk
fi

if [ -f "output/surf/rh.pial" ]; then
    mris_decimate -d 0.1 output/surf/rh.pial rh.10.pial
    mris_convert rh.10.pial rh.10.vtk
fi

I am wondering if we could take the these step out of app-freesufer and make it part of app-freesurfer-post. If we do this, we could also convert other files to .vtk or any web friendly format to visualize other files as well.. Do you have a suggestion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions