0
$\begingroup$

In case of RGB to grayscale conversion we take the average of R,G,B channels and convert them to Grayscale which has songle channel. How to convert back the Grayscale to RGB ??

$\endgroup$

1 Answer 1

2
$\begingroup$

It is not possible to get color back. A grayscale image can be converted to RGB image, by copying the grayscale data to all three RGB channels,but it will still be grayscale.

Note that in general, RGB is not simply averaged to grayscale, but a weighted average is used to match eye sensitivity.

$\endgroup$
2
  • $\begingroup$ If we copy the grayscale data into RGB channels. Then it would be a colour image ?? $\endgroup$ Feb 28, 2020 at 19:28
  • 2
    $\begingroup$ Yes, it would technically be a RGB color image, but with grayscale contents. $\endgroup$
    – Justme
    Feb 28, 2020 at 19:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.