Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Injective function of RGB

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.