Я хочу пару алгоритмов преобразования, один от RGB до YUV, другой от YUV до RGB, которые являются обратными друг другу. То есть конверсия в оба конца должна оставить значение неизменным. (Если хотите, замените YUV на Y'UV, YUV, YCbCr, YPbPr.)
Есть ли такая вещь? Если да, то что это такое?
Отправленные решения (Как выполнить преобразование YUV в C/С++?, http://www.fourcc.org/fccyvrgb.php, http://en.wikipedia.org/wiki/YUV) являются только инверсиями (две матрицы 3x3 являются обратными), при отсутствии зажима [0255]. Но отсутствие этого зажима позволяет такие вещи, как отрицательная яркость, которая играет веселье в обработке изображений в пространстве YUV. Сохранение зажима делает преобразование нелинейным, что затрудняет определение обратного.