I'm not sure how to do this with workbench/wb_command, but it can be done with caret5:
http://brainvis.wustl.edu/wiki/index.php/Caret:Download You would find the midthickness 32k surf.gii that corresponds to the label.gii and use commands like this: caret_command -surface-region-of-interest-selection <input-coord-file-name> <input-topology-file-name> <input-region-of-interest-file-name.roi> <output-region-of-interest-file-name.roi> [-paint paint-file-name column paint-name NORMAL caret_command -surface-to-volume <input-coordinate-file-name> <input-topology-file-name> <input-metric-paint-or-shape-file-name> <input-metric-paint-or-shape-column> <output-volume-file-name> [-inner inner-boundary] [-outer outer-boundary] [-step intersection-step] Intersect a surface with a volume and assign the specified column's data of the metric, paint, or shape file to the volume. The output volume file must exist and it must be in the same stereotaxic space as the surface. A volume file may be created by using the "-volume-create" or "-volume-create-in-stereotaxic-space" commands. The default inner boundary, outer boundar, and step size are -1.5, 1.5, and 0.5 respectively. The metric, paint, or shape file column is either the number of the column, which starts at one, or the name of the column. If a name contains spaces, it must be enclosed in double quotes. Name has priority over number. There might be an easier way, but this is what comes to mind. On Dec 9, 2013, at 10:11 AM, Long <[email protected]> wrote: > Dear all, > > I'm trying to use the BAs from the well parcellated file > BA.32k_fs_LR.label.gii as the ROI, so how could I extract the specific BAs, > i.e., BA 4 from this file and convert it to the volumetric nifti image? Thank > you for your time! > > Best, > Xiangyu > _______________________________________________ > HCP-Users mailing list > [email protected] > http://lists.humanconnectome.org/mailman/listinfo/hcp-users > _______________________________________________ HCP-Users mailing list [email protected] http://lists.humanconnectome.org/mailman/listinfo/hcp-users
