You might try a label file instead.  I don’t know if RGBA are supported by 
Workbench or not.

Peace,

Matt.

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of Corina Melzer 
<[email protected]<mailto:[email protected]>>
Date: Wednesday, December 6, 2017 at 5:15 AM
To: <[email protected]<mailto:[email protected]>>
Subject: [HCP-Users] RGBA files in connectome workbench

Hi,

I want to map some custom coloring to the triangles in wb_view and thought of 
using the RGBA files for that. I created this RGBA file with nibabel using 
values between [0,1].

gii_arr = gifti.GiftiDataArray(data=color_data,intent="NIFTI_INTENT_RGB_VECTOR")
gii_img = gifti.GiftiImage()
gii_img.add_gifti_data_array(gii_arr)
gifti.giftiio.write(gii_img, 'test.rgba.gii')

When loading this file into wb_view, all faces are coloured blue instead of the 
defined color codes.

How is this file supposed to be formatted to show the defined coloring? Am I 
getting the idea of this kind of file wrong?

I also tested with an rgb file which has been provided for caret some time ago 
(https://www.nitrc.org/forum/forum.php?offset=125&max_rows=25&style=flat&forum_id=281&thread_id=).
 The overlay is also just blue and not as shown in their provided screenshot.

[workbench version 1.2.3]

Thanks for your help,
Corina





_______________________________________________
HCP-Users mailing list
[email protected]
http://lists.humanconnectome.org/mailman/listinfo/hcp-users

Reply via email to