Hi everybody. This is Jared over at BWH. We are currently working on some manual editing of segmentation volumes. This requires repetitively switching the view between the segmentation volume and the black and white MRI volume as you edit. This is normally done in TkMedit with the control-g keystroke which activates the "Segmentation Overlay" command in the View menu. In editing the segmentation volume for any given patient the number of times that this keystroke is used is on the order of hundreds to thousands. What we would like to do is find a way to automate that keystroke so that during editing the view would automatically switch every 5 seconds or so between the black and white MRI image and the segmentation overlay. We use MAC OS X, leopard, and have thought of using automator or apple script to automate the command. We think this might be difficult to do because the "segmentation overlay" command cannot be elicited from Terminal (Terminal is Mac OS's command-line interface). If the "segmentation overlay" command could be elicited from a command-line prompt it should be a simple matter to create a script that would repetitively enter this command. Does anyone know how we could accomplish automation of this task within TkMedit?
All the best, Jared
Jared Price Center for Neurological Imaging Brigham and Women's Hospital Harvard Medical School 1249 Boylston Street Boston, MA 02115
617-525-6076 jcp44@bwh.harvard.edu
The information transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this information in error, please contact the Compliance Help Line at 800-856-1983 and properly dispose of this information.
I don't know if this will help, but here's a TCL script that you can pass to tkmedit with the -tcl option. It changes the orientation and slice number. You might be able to write a TCL function that you can call from the TCL prompt. Unfortunately, this TCL functionality is completely undocumented. Others might have some scripts that are closer to what you want.
doug
Jared Price wrote:
Hi everybody. This is Jared over at BWH. We are currently working on some manual editing of segmentation volumes. This requires repetitively switching the view between the segmentation volume and the black and white MRI volume as you edit. This is normally done in TkMedit with the control-g keystroke which activates the "Segmentation Overlay" command in the View menu. In editing the segmentation volume for any given patient the number of times that this keystroke is used is on the order of hundreds to thousands. What we would like to do is find a way to automate that keystroke so that during editing the view would automatically switch every 5 seconds or so between the black and white MRI image and the segmentation overlay. We use MAC OS X, leopard, and have thought of using automator or apple script to automate the command. We think this might be difficult to do because the "segmentation overlay" command cannot be elicited from Terminal (Terminal is Mac OS's command-line interface). If the "segmentation overlay" command could be elicited from a command-line prompt it should be a simple matter to create a script that would repetitively enter this command. Does anyone know how we could accomplish automation of this task within TkMedit?
All the best, Jared
Jared Price Center for Neurological Imaging Brigham and Women's Hospital Harvard Medical School 1249 Boylston Street Boston, MA 02115
617-525-6076 jcp44@bwh.harvard.edu
The information transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this information in error, please contact the Compliance Help Line at 800-856-1983 and properly dispose of this information.
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu