Hi Freesurfers,
I tried to overlay .w file onto a surface, and failed. I dug the previous posts and know this file format is obsolete now. However I wish to know in which version of freeview can I still use this file format, if possible. It will be great if you can provide the link for it. If this is not possible, is there a matlab tool similar to 'write_file.m' so I can output my data in matlab to the newer format (substitution of w-file)? Thanks in advance.
best Peng
Hi Peng
you can use read_wfile to read it into matlab, then save_mgh or MRIwrite to save them in .mgz format. Note that you will need to make sure that the vector you are writing is the correct length. The w-files can be sparse (that is, every vertex doesn't have to have a value), but the .mgz files cannot be, so you'll need to create a vector that is nvertices in length (the number of vertices in the surface you are using), then set the entries in the vertices given to you by read_wfile to the values it gives you
cheers Bruce
On Tue, 29 Dec 2015, peng wrote:
Hi Freesurfers, I tried to overlay .w file onto a surface, and failed. I dug the previous posts and know this file format is obsolete now. However I wish to know in which version of freeview can I still use this file format, if possible. It will be great if you can provide the link for it. If this is not possible, is there a matlab tool similar to 'write_file.m' so I can output my data in matlab to the newer format (substitution of w-file)? Thanks in advance.
best Peng
You can also use mri_surf2surf to convert it to mgh or curv format
On 01/06/2016 02:03 PM, Bruce Fischl wrote:
Hi Peng
you can use read_wfile to read it into matlab, then save_mgh or MRIwrite to save them in .mgz format. Note that you will need to make sure that the vector you are writing is the correct length. The w-files can be sparse (that is, every vertex doesn't have to have a value), but the .mgz files cannot be, so you'll need to create a vector that is nvertices in length (the number of vertices in the surface you are using), then set the entries in the vertices given to you by read_wfile to the values it gives you
cheers Bruce
On Tue, 29 Dec 2015, peng wrote:
Hi Freesurfers, I tried to overlay .w file onto a surface, and failed. I dug the previous posts and know this file format is obsolete now. However I wish to know in which version of freeview can I still use this file format, if possible. It will be great if you can provide the link for it. If this is not possible, is there a matlab tool similar to 'write_file.m' so I can output my data in matlab to the newer format (substitution of w-file)? Thanks in advance.
best Peng
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
oh, much easier. I didn't realize mri_surf2surf supported .w format Bruce On Wed, 6 Jan 2016, Douglas N Greve wrote:
You can also use mri_surf2surf to convert it to mgh or curv format
On 01/06/2016 02:03 PM, Bruce Fischl wrote:
Hi Peng
you can use read_wfile to read it into matlab, then save_mgh or MRIwrite to save them in .mgz format. Note that you will need to make sure that the vector you are writing is the correct length. The w-files can be sparse (that is, every vertex doesn't have to have a value), but the .mgz files cannot be, so you'll need to create a vector that is nvertices in length (the number of vertices in the surface you are using), then set the entries in the vertices given to you by read_wfile to the values it gives you
cheers Bruce
On Tue, 29 Dec 2015, peng wrote:
Hi Freesurfers, I tried to overlay .w file onto a surface, and failed. I dug the previous posts and know this file format is obsolete now. However I wish to know in which version of freeview can I still use this file format, if possible. It will be great if you can provide the link for it. If this is not possible, is there a matlab tool similar to 'write_file.m' so I can output my data in matlab to the newer format (substitution of w-file)? Thanks in advance.
best Peng
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Thank you Douglas!
On Wed, Jan 6, 2016 at 8:10 PM, Douglas N Greve greve@nmr.mgh.harvard.edu wrote:
You can also use mri_surf2surf to convert it to mgh or curv format
On 01/06/2016 02:03 PM, Bruce Fischl wrote:
Hi Peng
you can use read_wfile to read it into matlab, then save_mgh or MRIwrite to save them in .mgz format. Note that you will need to make sure that the vector you are writing is the correct length. The w-files can be sparse (that is, every vertex doesn't have to have a value), but the .mgz files cannot be, so you'll need to create a vector that is nvertices in length (the number of vertices in the surface you are using), then set the entries in the vertices given to you by read_wfile to the values it gives you
cheers Bruce
On Tue, 29 Dec 2015, peng wrote:
Hi Freesurfers, I tried to overlay .w file onto a surface, and failed. I dug the previous posts and know this file format is obsolete now. However I wish to know in which version of freeview can I still use this file format, if possible. It will be great if you can provide the link for it. If this is not possible, is there a matlab tool similar to 'write_file.m' so I can output my data in matlab to the newer format (substitution of w-file)? Thanks in advance.
best Peng
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
-- Douglas N. Greve, Ph.D. MGH-NMR Center greve@nmr.mgh.harvard.edu Phone Number: 617-724-2358 Fax: 617-726-7422
Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2 www.nmr.mgh.harvard.edu/facility/filedrop/index.html Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
Thank you Bruce!
On Wed, Jan 6, 2016 at 8:03 PM, Bruce Fischl fischl@nmr.mgh.harvard.edu wrote:
Hi Peng
you can use read_wfile to read it into matlab, then save_mgh or MRIwrite to save them in .mgz format. Note that you will need to make sure that the vector you are writing is the correct length. The w-files can be sparse (that is, every vertex doesn't have to have a value), but the .mgz files cannot be, so you'll need to create a vector that is nvertices in length (the number of vertices in the surface you are using), then set the entries in the vertices given to you by read_wfile to the values it gives you
cheers Bruce
On Tue, 29 Dec 2015, peng wrote:
Hi Freesurfers,
I tried to overlay .w file onto a surface, and failed. I dug the previous posts and know this file format is obsolete now. However I wish to know in which version of freeview can I still use this file format, if possible. It will be great if you can provide the link for it. If this is not possible, is there a matlab tool similar to 'write_file.m' so I can output my data in matlab to the newer format (substitution of w-file)? Thanks in advance.
best Peng
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
freesurfer@nmr.mgh.harvard.edu