LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert an 8-bit grayscale image into an RGB image

You can't.  When you convert color to gray, you lost the color info. forever.  Color plane is not enough.

You can convert the grayscale image to color image format.  But the image still looks gray to human eye.

 

George Zou
0 Kudos
Message 11 of 14
(367 Views)

@zou wrote:

You can't.  When you convert color to gray, you lost the color info. forever.  Color plane is not enough.

You can convert the grayscale image to color image format.  But the image still looks gray to human eye.

 


how about to transform the color images RGB to Y Cb Cr , process Y , and then re-transform the processed Y together with the un-processed Cb Cr

 

could that work?

 

https://en.wikipedia.org/wiki/YCbCr

 

Spoiler

 

 

Message 12 of 14
(357 Views)

@alexderjuengere wrote:


how about to transform the color images RGB to Y Cb Cr , process Y , and then re-transform the processed Y together with the un-processed Cb Cr

 

could that work?

 

https://en.wikipedia.org/wiki/YCbCr

 

Spoiler

That might be a good idea.

 

George Zou
0 Kudos
Message 13 of 14
(347 Views)

Perhaps just separate the original image into separate R, G, B components, then perform the de-hazing separately on each of them.  Then put them back together.

Message 14 of 14
(323 Views)