VOI colored display on anatomical

VOI colored display on anatomical

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:

  1. 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.
  2. 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).
  3. 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).
  4. Open an anatomical, and overlay the combined VOI file.
  5. 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      

AreaColor RGB
1Insula Left ALG0 153 255
2Insula Left ASG255   0   0
3Insula Left MSG222 125   0
4Insula Left PLG 122  16 228
5Insula Left PSG0 204   0
6Insula Right ALG0 101 230
7Insula Right ASG230  38   0
8 Insula Right MSG196 144   0
9Insula Right PLG138  14 201
10Insula Right PSG0 179  31

 

 

 

  1. Open anatomical, overlay combined VOI file.
  2. Select LUT; Example of option available when "insula.lut" is placed in C:\Program Files (x86)\mricron\lut.
  3. Set minimum to a very small positive number.
  4. Set maximum to 255.