Perhaps Jenn has some text about scenes you can read.  The scene saves the 
exact state of workbench.  You can then export pictures using the command I 
mentioned below.  The development version allows you to iterate through 
multiple maps.

Peace,

Matt.

From: Garren Gaut <gbiu...@gmail.com<mailto:gbiu...@gmail.com>>
Date: Monday, January 29, 2018 at 5:16 PM
To: Matt Glasser <glass...@wustl.edu<mailto:glass...@wustl.edu>>
Subject: Re: [HCP-Users] Workbench: save images using the command line

Is there a way to save a scene without using the workbench GUI?

On Mon, Jan 29, 2018 at 5:14 PM, Glasser, Matthew 
<glass...@wustl.edu<mailto:glass...@wustl.edu>> wrote:
You have save a scene in workbench after you set everything up how you want it.

Peace,

Matt.

From: Garren Gaut <gbiu...@gmail.com<mailto:gbiu...@gmail.com>>
Date: Monday, January 29, 2018 at 5:11 PM
To: Matt Glasser <glass...@wustl.edu<mailto:glass...@wustl.edu>>
Subject: Re: [HCP-Users] Workbench: save images using the command line


Thanks Matt,

I’m trying out the -show-scene function, but am getting an error. Does the 
parameter <scene-file> have to point to a scene-file? And if so, is there a way 
to create a scene-file using wb_command? The results files I’m trying to 
visualize are in .dscalar.nii format. I’m running the command:

wb_command -show-scene 
files/0bck_minus_baseline_mean_contrast_cohensd_whs26_whmodel1.dscalar.nii 1 
test.png 10 10 -use-window-size


and am getting the error:

While running:
/Applications/workbench/bin_macosx64/../macosx64_apps/wb_command.app/Contents/MacOS/wb_command
 -show-scene 
files/0bck_minus_baseline_mean_contrast_cohensd_whs26_whmodel1.dscalar.nii 1 
test.png 10 10 -use-window-size

ERROR: Parse Error while reading:: error occurred while parsing element, line 
number: 1 column number: 1

File: 0bck_minus_baseline_mean_contrast_cohensd_whs26_whmodel1.dscalar.nii
Path: /Users/Garren/Dropbox/FMRI/Projects/varianceGLM/ROI2NIfTI/files


Thanks,

-Garren

​

On Mon, Jan 29, 2018 at 4:47 PM, Glasser, Matthew 
<glass...@wustl.edu<mailto:glass...@wustl.edu>> wrote:
wb_command -show-scene is used for this purpose.  The development version 
allows you to increment by map index.

Peace,

Matt.

From: 
<hcp-users-boun...@humanconnectome.org<mailto:hcp-users-boun...@humanconnectome.org>>
 on behalf of Garren Gaut <gbiu...@gmail.com<mailto:gbiu...@gmail.com>>
Date: Monday, January 29, 2018 at 4:45 PM
To: "hcp-users@humanconnectome.org<mailto:hcp-users@humanconnectome.org>" 
<hcp-users@humanconnectome.org<mailto:hcp-users@humanconnectome.org>>
Subject: [HCP-Users] Workbench: save images using the command line

Hi HCP support,

I am trying to automate the generation of brain images using workbench. I have 
several cifti files containing effect size maps and I would like to save the 
maps to images without ever using the workbench GUI. I've written a script that 
loads of all my files and sets up the viewing options using `wb_command`, but I 
haven't been able to figure out a way to save workbench images from the command 
line. Is there a way to use `wb_command` (or some other tool) to do this?

Let me know if there is anything I can clarify or provide that you need. I 
appreciate the help.

Thank you!

-Garren

--

Garren Gaut
Department of Cognitive Sciences
University of California, Irvine
2279 Social & Behavioral Sciences Gateway Building
Irvine, CA 92697-5100
(949)533-4612<tel:(949)%20533-4612>gbiu...@gmail.com<mailto:gbiu...@gmail.com>

_______________________________________________
HCP-Users mailing list
HCP-Users@humanconnectome.org<mailto:HCP-Users@humanconnectome.org>
http://lists.humanconnectome.org/mailman/listinfo/hcp-users



--

Garren Gaut
Department of Cognitive Sciences
University of California, Irvine
2279 Social & Behavioral Sciences Gateway Building
Irvine, CA 92697-5100
(949)533-4612<tel:(949)%20533-4612>gbiu...@gmail.com<mailto:gbiu...@gmail.com>



--

Garren Gaut
Department of Cognitive Sciences
University of California, Irvine
2279 Social & Behavioral Sciences Gateway Building
Irvine, CA 92697-5100
(949)533-4612
gbiu...@gmail.com<mailto:gbiu...@gmail.com>

_______________________________________________
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users

Reply via email to