Re: RGB conversion to 8 bit gray scale




sean_incali wrote:
> IMAGEJ doc's says...
>
> RGB images are converted to grayscale using the formula
> gray=0.299red+0.587green+0.114blue or the formula
> gray=(red+green+blue)/3
> if "Unweighted RGB to Grayscale Conversion" is checked in
> Edit/Options/Conversions (ImageJ 1.32g or later).
>
>
> I think This isn't limited to IMAGEJ but to imagin processing in
> gfeneral? what is the reason for the weighted vs unweighted conversion?

The general formula is

gray = R*red + G*green + B*blue

where

R + G + B = 1

All conversions are weighted. If you want UNIFORM weights, then
R=G=B=1/3.

> Let's say you have a TIFF of RGB intensities (but Red channel is
> empty), and you want to convert it to 8bit grayscale images.

Then R=0, G+B=1.

> would you hav to rolling ball bacground subtract the RGB image then
> split them using one of the conversion method?
>
> or do you split them using one of the conversion methods and then
> background subtract using rolling ball?

What do you mean by "split"? Did you really mean "combine"?

Ed

.



Relevant Pages

  • RGB conversion to 8 bit gray scale
    ... RGB images are converted to grayscale using the formula ... Edit/Options/Conversions (ImageJ 1.32g or later). ... what is the reason for the weighted vs unweighted conversion? ...
    (sci.image.processing)
  • Re: RGB conversion to 8 bit gray scale
    ... > RGB images are converted to grayscale using the formula ... > Edit/Options/Conversions (ImageJ 1.32g or later). ... what is the reason for the weighted vs unweighted conversion? ...
    (sci.image.processing)
  • Re: Saturate / Grayscale
    ... RGB to a six sided pyramid, aka hexcone, with white at the center of the ... converting to grayscale, the important characteristic of this hexcone is ... that it gives equal brightness ratings to Red, Green, and Blue. ... Photoshop's conversion to grayscale is somewhat more sophisticated. ...
    (comp.graphics.apps.photoshop)
  • Re: UNIDRV Grayscale Vector vs. DIB Conversion
    ... something is doing the conversion from color to 8-bit grayscale. ... Can I specify *DrvBPP: 24 for Mono and do the conversion myself? ... UNIDRV Grayscale Vector vs. DIB Conversion ...
    (microsoft.public.development.device.drivers)
  • Re: Saturate / Grayscale
    ... RGB to a six sided pyramid, aka hexcone, with white at the center of the ... converting to grayscale, the important characteristic of this hexcone is ... that it gives equal brightness ratings to Red, Green, and Blue. ... Photoshop's conversion to grayscale is somewhat more sophisticated. ...
    (comp.graphics.apps.photoshop)