Re: [Freesurfer] tcl script question: labl_set_color
OK, right-clicking on the surface did in fact de-select the label (turning it all to a uniform color). Way to script a right-click? (I see left click...) Now that this is more or less working, I am looking to do something slightly different: i.e., combine the boundaries of one set of regions, one highlighed region, and an activation map. Is there a way to fill just one label and leave outlines for a different set of labels in the same image? Or alternatively set a different outline color for one label? As in my previous post, I am looking to do this via tcl script if possible. Thanks. On Mon, Dec 5, 2011 at 3:07 PM, Bruce Fischl fis...@nmr.mgh.harvard.eduwrote: yes, just use the -tcl script name option, but don't but an exit command at the end of the tcl script cheers Bruce On Mon, 5 Dec 2011, Justin Baker wrote: Ah - in that case I have a total newbie question, since I primarily use tksurfer via command line: Is there a way to load up a case using the tcl script, but then leave it open rather than quit? This way I could try de-selecting with right-click. Thanks. On Mon, Dec 5, 2011 at 9:05 AM, Bruce Fischl fis...@nmr.mgh.harvard.edu wrote: I think so, but I want to see if it fixes your problem before I go digging through the tcl code to see what it is On Mon, 5 Dec 2011, Justin Baker wrote: Is there a command to do this via tcl script? Justin On Sun, Dec 4, 2011 at 8:49 PM, Bruce Fischl fis...@nmr.mgh.harvard.edu wrote: What happens if you right click on the surface then? On Dec 4, 2011, at 8:17 PM, Justin Baker justintba...@gmail.com wrote: Hi Bruce, Thanks. Some progress! That resulted in the label border turning red, but the fill is still white. Any other thoughts? Cheers, Justin On Wed, Nov 30, 2011 at 2:54 PM, Bruce Fischl fis...@nmr.mgh.harvard.edu wrote: Hi Justin try unselecting the label with: labl_select -1 cheers Bruce On Wed, 30 Nov 2011, Justin Baker wrote: I am trying to use tksurfer to script overlay of a label + functional map onto an fsaverage5 surface. In particular, I want to set the label to fill and color it red. I have: set labelstyle 0 labl_set_color 0 255 0 0 As you can see below, the output of label_print_list shows that the color of the label should be 255 0 0 but it looks white in the output image. Am I missing something? Thanks subject is fsaverage5 hemiis lh surface is inflated Label 0 Name: lh.17Networks_LH_ContB_PFClv.**label, 109 vertices Structure: -1 Color: 255 0 0 Visible: 1 Bounds: x -20.879234 12.792567 y -4.00 109.853737 z -4.033233 4.040778 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/**compliancelinehttp://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 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
Re: [Freesurfer] tcl script question: labl_set_color
I think you can set the outline color of each label indepently by using it's index which is assigned in the order in which it is loaded I believe. So in our example below labl_set_color 0 255 0 0, change the first 0 to a 1 for the second label. Also, I would have thought labl_select -1 would deselect the label and turn off the white marks, but if not you can also try calling clear_all_vertex_marks in the tcl script On Fri, 9 Dec 2011, Justin Baker wrote: OK, right-clicking on the surface did in fact de-select the label (turning it all to a uniform color). Way to script a right-click? (I see left click...) Now that this is more or less working, I am looking to do something slightly different: i.e., combine the boundaries of one set of regions, one highlighed region, and an activation map. Is there a way to fill just one label and leave outlines for a different set of labels in the same image? Or alternatively set a different outline color for one label? As in my previous post, I am looking to do this via tcl script if possible. Thanks. On Mon, Dec 5, 2011 at 3:07 PM, Bruce Fischl fis...@nmr.mgh.harvard.edu wrote: yes, just use the -tcl script name option, but don't but an exit command at the end of the tcl script cheers Bruce On Mon, 5 Dec 2011, Justin Baker wrote: Ah - in that case I have a total newbie question, since I primarily use tksurfer via command line: Is there a way to load up a case using the tcl script, but then leave it open rather than quit? This way I could try de-selecting with right-click. Thanks. On Mon, Dec 5, 2011 at 9:05 AM, Bruce Fischl fis...@nmr.mgh.harvard.edu wrote: I think so, but I want to see if it fixes your problem before I go digging through the tcl code to see what it is On Mon, 5 Dec 2011, Justin Baker wrote: Is there a command to do this via tcl script? Justin On Sun, Dec 4, 2011 at 8:49 PM, Bruce Fischl fis...@nmr.mgh.harvard.edu wrote: What happens if you right click on the surface then? On Dec 4, 2011, at 8:17 PM, Justin Baker justintba...@gmail.com wrote: Hi Bruce, Thanks. Some progress! That resulted in the label border turning red, but the fill is still white. Any other thoughts? Cheers, Justin On Wed, Nov 30, 2011 at 2:54 PM, Bruce Fischl fis...@nmr.mgh.harvard.edu wrote: Hi Justin try unselecting the label with: labl_select -1 cheers Bruce On Wed, 30 Nov 2011, Justin Baker wrote: I am trying to use tksurfer to script overlay of a label + functional map onto an fsaverage5 surface. In particular, I want to set the label to fill and color it red. I have: set labelstyle 0 labl_set_color 0 255 0 0 As you can see below, the output of label_print_list shows that the color of the label should be 255 0 0 but it looks white in the output image. Am I missing something? Thanks subject is fsaverage5 hemi is lh surface is inflated Label 0 Name: lh.17Networks_LH_ContB_PFClv.label, 109 vertices Structure: -1
Re: [Freesurfer] tcl script question: labl_set_color
Hi Bruce, Thanks. Some progress! That resulted in the label border turning red, but the fill is still white. Any other thoughts? Cheers, Justin On Wed, Nov 30, 2011 at 2:54 PM, Bruce Fischl fis...@nmr.mgh.harvard.eduwrote: Hi Justin try unselecting the label with: labl_select -1 cheers Bruce On Wed, 30 Nov 2011, Justin Baker wrote: I am trying to use tksurfer to script overlay of a label + functional map onto an fsaverage5 surface. In particular, I want to set the label to fill and color it red. I have: set labelstyle 0 labl_set_color 0 255 0 0 As you can see below, the output of label_print_list shows that the color of the label should be 255 0 0 but it looks white in the output image. Am I missing something? Thanks subject is fsaverage5 hemiis lh surface is inflated Label 0 Name: lh.17Networks_LH_ContB_PFClv.**label, 109 vertices Structure: -1 Color: 255 0 0 Visible: 1 Bounds: x -20.879234 12.792567 y -4.00 109.853737 z -4.033233 4.040778 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/**compliancelinehttp://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 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.
Re: [Freesurfer] tcl script question: labl_set_color
What happens if you right click on the surface then? On Dec 4, 2011, at 8:17 PM, Justin Baker justintba...@gmail.com wrote: Hi Bruce, Thanks. Some progress! That resulted in the label border turning red, but the fill is still white. Any other thoughts? Cheers, Justin On Wed, Nov 30, 2011 at 2:54 PM, Bruce Fischl fis...@nmr.mgh.harvard.edu wrote: Hi Justin try unselecting the label with: labl_select -1 cheers Bruce On Wed, 30 Nov 2011, Justin Baker wrote: I am trying to use tksurfer to script overlay of a label + functional map onto an fsaverage5 surface. In particular, I want to set the label to fill and color it red. I have: set labelstyle 0 labl_set_color 0 255 0 0 As you can see below, the output of label_print_list shows that the color of the label should be 255 0 0 but it looks white in the output image. Am I missing something? Thanks subject is fsaverage5 hemiis lh surface is inflated Label 0 Name: lh.17Networks_LH_ContB_PFClv.label, 109 vertices Structure: -1 Color: 255 0 0 Visible: 1 Bounds: x -20.879234 12.792567 y -4.00 109.853737 z -4.033233 4.040778 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 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.
Re: [Freesurfer] tcl script question: labl_set_color
I am trying to use tksurfer to script overlay of a label + functional map onto an fsaverage5 surface. In particular, I want to set the label to fill and color it red. I have: set labelstyle 0 labl_set_color 0 255 0 0 As you can see below, the output of label_print_list shows that the color of the label should be 255 0 0 but it looks white in the output image. Am I missing something? Thanks subject is fsaverage5 hemiis lh surface is inflated Label 0 Name: lh.17Networks_LH_ContB_PFClv.label, 109 vertices Structure: -1 Color: 255 0 0 Visible: 1 Bounds: x -20.879234 12.792567 y -4.00 109.853737 z -4.033233 4.040778 ___ 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.
Re: [Freesurfer] tcl script question: labl_set_color
Hi Justin try unselecting the label with: labl_select -1 cheers Bruce On Wed, 30 Nov 2011, Justin Baker wrote: I am trying to use tksurfer to script overlay of a label + functional map onto an fsaverage5 surface. In particular, I want to set the label to fill and color it red. I have: set labelstyle 0 labl_set_color 0 255 0 0 As you can see below, the output of label_print_list shows that the color of the label should be 255 0 0 but it looks white in the output image. Am I missing something? Thanks subject is fsaverage5 hemi is lh surface is inflated Label 0 Name: lh.17Networks_LH_ContB_PFClv.label, 109 vertices Structure: -1 Color: 255 0 0 Visible: 1 Bounds: x -20.879234 12.792567 y -4.00 109.853737 z -4.033233 4.040778 ___ 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.