help > How should the file load from file for the color option in the surface panel be set?
Showing 1-2 of 2 posts
Jun 15, 2022 03:06 AM | dan zz
How should the file load from file for the color option in the surface panel be set?
I use two brain models for drawing, I want to make the colors of
the two brain models different, how should I set the file
Jun 16, 2022 05:06 AM | Mingrui Xia
RE: How should the file load from file for the color option in the surface panel be set?
Hi,
1. prepare a color index txt file, which contains an n*3 matrix. n corresponds to the number of vertex on the brain surface (eg 81924 for BrainMesh_ICBM152_smoothed.nv). n should be doubled when using two brain models. 3 elements represent the RGB values.
2. in the option panel, choose load from file for surface color, and select this txt file in the popup dialog.
Please use the attached code to update your BNV. A sample color table is also included, where the first brain is colored red and second is colored blue.
Originally posted by dan zz:
1. prepare a color index txt file, which contains an n*3 matrix. n corresponds to the number of vertex on the brain surface (eg 81924 for BrainMesh_ICBM152_smoothed.nv). n should be doubled when using two brain models. 3 elements represent the RGB values.
2. in the option panel, choose load from file for surface color, and select this txt file in the popup dialog.
Please use the attached code to update your BNV. A sample color table is also included, where the first brain is colored red and second is colored blue.
Originally posted by dan zz:
I use two brain models for drawing, I want to
make the colors of the two brain models different, how should I set
the file