Hello again!
I've got a bunch of brain scans, each having in the neighborhood of 100 points I'm interested in (corresponding to subdural electrode locations). I've also got an .aparc.annot file that has nicely divided up the cortex into (hopefully) meaningful regions. I also have a bunch of labels, each marking one of the interesting points. I would like to know in which region each of those labels sits.
What I was hoping to do: call read_annotation on the .apparc.annot file read the vertex numbers from the labels using read_label index those vertex numbers into the label field returned by read_annotation index those label numbers into the fifth column of colortable.table index those table rows into colortable.struct_names smile happily
What I have actually done: call read_annotation on the .apparc.annot file read labels using read_label notice that all the vertex numbers on all the labels that I have ever made are -1 try unsuccessfully to figure out what that means hunt unsuccessfully for any way of converting what I believe to be RAS coordinates from columns 2-4 of the read_label output into vertex numbers in desperation, throw myself upon the mercy of the wise people who frequent this mailing list.
I'd be insanely grateful if someone could point me in the right direction. I bet there's something really simple and stupid and obvious, but I'm still a novice with this software and everywhere that I've even been able to think to look has come up a dead end.
Thanks so much! Jed
Hi Jed,
that means that your label was created in the volume. If you load it in tksurfer it will sample it onto the surface and fill in the vertex numbers. Then you can save it and you should be all set.
cheers Bruce On Thu, 6 May 2010, Jed Singer wrote:
Hello again!
I've got a bunch of brain scans, each having in the neighborhood of 100 points I'm interested in (corresponding to subdural electrode locations). I've also got an .aparc.annot file that has nicely divided up the cortex into (hopefully) meaningful regions. I also have a bunch of labels, each marking one of the interesting points. I would like to know in which region each of those labels sits.
What I was hoping to do: call read_annotation on the .apparc.annot file read the vertex numbers from the labels using read_label index those vertex numbers into the label field returned by read_annotation index those label numbers into the fifth column of colortable.table index those table rows into colortable.struct_names smile happily
What I have actually done: call read_annotation on the .apparc.annot file read labels using read_label notice that all the vertex numbers on all the labels that I have ever made are -1 try unsuccessfully to figure out what that means hunt unsuccessfully for any way of converting what I believe to be RAS coordinates from columns 2-4 of the read_label output into vertex numbers in desperation, throw myself upon the mercy of the wise people who frequent this mailing list.
I'd be insanely grateful if someone could point me in the right direction. I bet there's something really simple and stupid and obvious, but I'm still a novice with this software and everywhere that I've even been able to think to look has come up a dead end.
Thanks so much! Jed _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu