Export Channel Settings

View on GitHub

This program enables you to export the channel settings from an imaris file to a comma separated values (csv) file. This is convenient for manual editing. Once modified the settings file can be applied to other imaris files using the Configure Channel Settings extension.

Note: If the exported settings include color tables, these are exported as additional files that are referenced in the csv file.

Example output csv file content:

name,description,color,alpha,range,gamma
Cytoplasm, first channel description,"0.0, 76.5, 0.0",1.0,"22.836, 162.388",1.0
Nucleus,second channel description,glow_color_table.pal,1.0,"72.272, 158.038",1.0
Vesicles,third channel description,"255.0,0.0,0.0",1.0,"62.164, 150.97",1.0

The second channel used a color table instead of a single color. The file containing the color table is specified using a relative path. The contents of a color table file are triplets, RGB values, in [0,255]. The specific file with 256 entries looks like this:

0.000 0.000 0.000
0.000 0.000 0.000
4.080 0.000 0.000
4.080 0.000 0.000
7.905 0.000 0.000
7.905 0.000 0.000
11.985 0.000 0.000
11.985 0.000 4.080
16.065 0.000 4.080
16.065 0.000 4.080
19.890 0.000 4.080
19.890 0.000 4.080
...
...
250.920 250.920 235.110
250.920 250.920 238.935
250.920 250.920 243.015
250.920 250.920 243.015
250.920 250.920 247.095
255.000 255.000 255.000