Skip to content
  • There are no suggestions because the search field is empty.

How do I use Color Mapping on my NeuraScanner?

Learn how to customize color mapping in NeuraScanner software by defining specific color sets in rgb.txt or rgb32.txt files for 32 or 256 color settings.

Color mapping will map all scanned colors to a subset of defined colors. 

For larger sets of colors, you may use the 256 color setting in the scanner software and enter up to 256 colors in the rgb.txt file. 

For smaller sets, you may use the 32 color setting in the scanner software and enter up to 32 colors in the rgb32.txt or rgb.txt file.  

Use both files if you wish to save and switch between 2 sets of mappings; otherwise just use rgb.txt and enter however many colors you need. 

All Neuralog software ships with a default rgb.txt color mapping file.

Before changing the color map, be sure to save a copy of the default rgb.txt.  To change the color map, once you have entered the colors into the rgb.txt, save the new file. The scanner software looks for the file in:

  • first the current scan directory
  • next the site directory you have defined   
  • finally the nds/res directory

In this way it is possible to define multiple color mappings for different sets of files.

The rgb.txt file is a set of triplet rgb values with an optional color name.  Below is an example.  Note that in this example only 15 colors have been defined.  This means that when the file is present, whether 32 or 256 colors are chosen in the scanner software, the files produced will have only these 15 colors.

****************SAMPLE RGB.TXT ****************
106 90 205        slate blue
135 206 235      sky blue
60 179 113        medium sea green
0 255 127          spring green
255 255 0          yellow1
205 133 63        tan3
255 165 0          orange1
238 0 0             red2
238 18 137        DeepPink2
255 174 185      LightPink1
205 0 205          magenta3
139 71 137        orchid4
166 166 166      gray65
255 255 255      grey100
0 0 0                 gray0
*****************************************************

IMPORTANT:  Color mapping tables and algorithm maps the 16-bit scanned color image to the defined color set.  Natural “noise” in the image may result in a scanned image that is not mapped as expected.  In other words, because of the nature of colors, it is likely the mapping of 65,000 colors (16-bit) onto 256 or 32 or fewer colors will not always have the desired results.