voi.addsphericalvoi
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | voi.addsphericalvoi [2010/06/28 19:07] (current) – created jochen | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== voi.AddSphericalVOI ====== | ||
+ | ===== Motivation ===== | ||
+ | In many cases, researchers already have a priori selected areas/ | ||
+ | |||
+ | Often these regions of a priori interest are given as an estimate of a central coordinate around which a spherical shape is defined with a given radius. This method allows to create ROIs that conform with that notion. | ||
+ | |||
+ | ===== Method reference (' | ||
+ | < | ||
+ | |||
+ | | ||
+ | |||
+ | Input fields: | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | ===== Example ===== | ||
+ | To add one specific ROI to a new VOI object around, say, coordinate (-24, -4, -22) (the Talairach Atlas resolves to the left Amygdala on that coordinate) with a radius of 6mm, you can use the following code: | ||
+ | |||
+ | <code matlab voi_addsphericalvoi_example1.m> | ||
+ | voi = xff(' | ||
+ | |||
+ | % add ROI | ||
+ | voi.AddSphericalVOI([-24, | ||
+ | |||
+ | To add multiple VOIs (e.g. from a table of coordinates), | ||
+ | |||
+ | <code matlab voi_addsphericalvoi_example2.m> | ||
+ | voi = xff(' | ||
+ | |||
+ | % coordinates are in a Cx3 table, ctab, and the radius is fixed at 8mm | ||
+ | % alternatively, | ||
+ | |||
+ | % iterate over coordinates in table | ||
+ | for cc = 1: | ||
+ | |||
+ | % add coordinate | ||
+ | voi.AddSphericalVOI(ctab(cc, | ||
+ | % or alternatively: | ||
+ | % voi.AddSphericalVOI(ctab(cc, | ||
+ | | ||
+ | end</ |
voi.addsphericalvoi.txt · Last modified: 2010/06/28 19:07 by jochen