/
VOI colored display on anatomical
VOI colored display on anatomical
Jun 29, 2016
This page describes how to create an image with VOI colored according to a specification, as below.
This image was created using mricron and SPM. The approach is as follows:
- Create a combined VOI file with each VOI represented by a different number (1, 2, 3, ...).
- You can do this manually using imcalc; select two VOI files, and enter an expression i1+i2*2+i3+3 to set image values for three VOI to be 1,2 and 3.
- Alternatively in CSPM: in the Display Results GUI, after you have loaded the VOI, select the VOI you want to combine, and click the "Show colors" button on the bottom right.
- Create a "look-up table" (LUT) file that assigns a color to each number; colors are RGB values.
- Example: insula.lut
- In CSPM: a LUT is created when you click "Show colors", based on the timetrends you have selected.
- This is a text file, with a value corresponding to an RGB color. In the insulat.lut example, we only have 10 VOI's, so most of the values are set to 0 (the lut must have 256 entries).
- Copy this LUT file into mricron's LUT folder
- Typically C:\Program Files (x86)\mricron\lut
- Next time you open mricron, you will see the name of this LUT as an option ("2" in example on right).
- Open an anatomical, and overlay the combined VOI file.
- Select the LUT from mricron's menu, and set the display range to be 0.01 - 255. (The 0.01 value is a very small number close to zero; other small values would work.)
Insula example
Code | Area | Color RGB |
---|---|---|
1 | Insula Left ALG | 0 153 255 |
2 | Insula Left ASG | 255 0 0 |
3 | Insula Left MSG | 222 125 0 |
4 | Insula Left PLG | 122 16 228 |
5 | Insula Left PSG | 0 204 0 |
6 | Insula Right ALG | 0 101 230 |
7 | Insula Right ASG | 230 38 0 |
8 | Insula Right MSG | 196 144 0 |
9 | Insula Right PLG | 138 14 201 |
10 | Insula Right PSG | 0 179 31 |
- Open anatomical, overlay combined VOI file.
- Select LUT; Example of option available when "insula.lut" is placed in C:\Program Files (x86)\mricron\lut.
- Set minimum to a very small positive number.
- Set maximum to 255.

, multiple selections available,