binarybottle / mindboggle_sidelined

Scripts used in the development of Mindboggle, but not in the mindboggle repository
Apache License 2.0
2 stars 0 forks source link

how to convert .vtk to .annot file? #1

Closed tanjia123456 closed 3 years ago

tanjia123456 commented 3 years ago

Hello, I use freesurfer software, and download the surfacelabel in mindboggle. I have .vtk file, But I want to convert it to .annot file to visualize. If you know please give me an example.

binarybottle commented 3 years ago

The mindboggle python library has a function to go the other way: https://mindboggle.readthedocs.io/en/latest/api/mindboggle.mio.html?highlight=.annot#mindboggle.mio.vtks.freesurfer_annot_to_vtk

You would have to check FreeSurfer to see if they have any function to go from vtk ascii to annot files.