Difference between revisions of "Running scripts"
(→Running scripts) |
(→Running scripts) |
||
Line 16: | Line 16: | ||
|} | |} | ||
− | <br /></font></div><div style="font-style: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> To run scripts from the Scripts toolbar<br /></font>'''</div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 1 Open an image of interest and VOI, if needed.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 2 Select a script from Current Script in the scripting toolbar, then click the Run the Selected Script icon. See | + | <br /></font></div><div style="font-style: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> To run scripts from the Scripts toolbar<br /></font>'''</div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 1 Open an image of interest and VOI, if needed.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 2 Select a script from Current Script in the scripting toolbar, then click the Run the Selected Script icon. See Figure 13.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> |
{| border="1" cellpadding="5" | {| border="1" cellpadding="5" |
Revision as of 20:41, 15 February 2012
Contents
Running scripts
You can run a script either using the Scripts toolbar or via the Scripts>Run Script menu.
If you are running the script via the Scripting toolbar and have at least one image open and selected, the script will automatically apply to that active image. Here, the active image is the image that is currently selected, refer to Figure 12.
If the script requires more than one image or VOI, it will pop up the Script Execution Setup dialog box, where you can add more images and VOIs to the script procedure. Refer to "To run scripts from the Run Script menu" and Figure 14.
Adding images to the Script Execution Setup
Adding VOIs to the Script Execution Setup
You don't need to manually associate VOIs for those images that already have associated VOIs. Those VOIs appear in the Script Execution Setup window automatically under the corresponding image.
Note: After assigning an image or VOI to a script in the Script Execution Setup, your can delete the assignment using the Delete context menu option.
Use the Scripting toolbar to run simple scripts which involve one image and one VOI. Use the Run Script menu option to run more complicated scripts which apply to multiple images and VOIs. You can also use the Scripting menu to execute the same script multiple times.
For example, you can consider to use the toolbar option to execute the script while you are setting the script parameters and/or testing it; and after the script has been tested and debugged, you can run it over the set of images via the Scripting menu.
The MIPAV Script Tool dialog box options
Script Execution Setup window
|
Contains a list of images and associated VOIs.
|
|
Images
|
Lists the images that appear in the script
| |
Add image from file
|
Allows you to add one or more images on which to run the script.
| |
VOIs from selected file
|
Lists any saved VOIs that are necessary when you run the script.
| |
Add VOI from file
|
Allows you to add one or more VOIs to the script.
| |
File menu
| ||
Open saved image and VOI selections
|
Opens the corresponding dialog box, which allows you to browse through the folders and select an image file or VOI with any specified extension.
| |
Save current image and VOI selections
|
Allows you to save the selected image or VOI.
| |
View current script contents
|
Opens a window that shows the script contents. Here, you can only select the script contents and copy it to the Clipboard using the CTRL C combination of keys.
| |
Close
|
Closes the Script Execution Setup.
| |
Run Script
|
Begins running the script.
|