any RGB bitmap won’t retain its colors once its imported – it will be shifted to greyscale. Thus, the task is to pick a shade of grey from the input file, not a color.
You’re correct, if your shades are not evenly distributed then you cannot use the Height Splitter. In that case, the best method is to wire the output of the File Input to a regular Splitter (set to 10 outputs) and to each one of those outputs connect a Height Selector. Set the Fuzziness value very low, and the two sliders (representing min, max values) close together, and move them around until each selector is picking out the correct shade of grey from the input mask. This is obviously pretty laborious, but if the colors are not evenly distributed is the best that can be done.
It’s also required of course, that two input RGB colors not map to the same greyscale value. If that is so, then you’re going to have to shift the colors beforehand to remove the overlap (although if you have that ability, it would make sense to just shift them to be even tones of grey so that you can use the Height Splitter!)