Is it possible to find a function that transforms a three-dimensional vector of values (each from 0 to 255) into a one-dimensional injective set of values? In other words, a function that assings an unequivocal value for each of RGB possible colors. Thanks in advance.