Ask a Question related to Adobe Photoshop Mac CS, CS2 & CS3, Design and Development.

  1. #1

    Default RGB->LAB->RGB

    Someone brought this up in a photography website and I thought it a good question.
    I've always read that switching from RGB to LAB and then back to RGB does not alter the color space. But it does. If you fill a doc with 0 255 0, switch to LAB, and then back to RGB, there are changes in either both RGB and CMYK values or just one of them, depending on what color profile you use.

    Is this correct??
    Mark McIntyre Guest

  2. #2

    Default Re: RGB->LAB->RGB

    With the color values you mentioned (I'm assuming you meant 0R 255G 0B), the RGB levels are effected, but not the Lab's of those colors. The Lab values of that shade of green, while in AdobeRGB, are 83L -128a 87b before and after converting. The RGB numbers end up being 21R 254G 3B. So the levels change, but not the color.

    Carl.
    Carl_Stawicki@adobeforums.com Guest

  3. #3

    Default Re: RGB->LAB->RGB

    When you change mode, I think it is best advise to do it through convert to profile, so that you can control to the way the conversion is done. But each time you convert a file there is some loss of data from rounding of numbers.

    Can anyone confim?
    Sylvain_Gingras@adobeforums.com Guest

  4. #4

    Default Re: RGB->LAB->RGB

    There may be rounding errors during the color space conversions. To assure little or no errors, use 16 bit files.
    Mike_Ornellas@adobeforums.com Guest

  5. #5

    Default Re: RGB->LAB->RGB

    By what version could you go to Lab in 16bit?

    So the levels change, but not the color




    Same color space, different numbers = different color
    John_Slate@adobeforums.com Guest

  6. #6

    Default Re: RGB->LAB->RGB

    Different combinations of levels within the same color space can have the same color. By 'color', I mean perceptual colors, as indicated by Lab values. Levels and colors are two different things.

    Carl.
    Carl_Stawicki@adobeforums.com Guest

  7. #7

    Default Re: RGB->LAB->RGB

    John,

    Photoshop CS supports 16 bit LAB.
    Mike_Ornellas@adobeforums.com Guest

  8. #8

    Default Re: RGB->LAB->RGB

    Thanks.

    But I''m still confused.

    Does the color degrade or not?

    Many authors have encouraged switching to LAB mode to sharpen the L channel, and then back to RGB or CMYK.

    Is this a problem for color shifting??
    Mark McIntyre Guest

  9. #9

    Default Re: RGB->LAB->RGB

    Yes, the conversion from RGB to Lab to RGB is subject to rounding errors.

    If you convert using whole numbers between Fahrenheit and Celsius, 53° Fahrenheit and 54° Fahrenheit both convert to 12° Celsius.

    8-bit/channel files only have 256 data points per channel. In a small RGB working space, those points are packed closer together than in a larger one. Lab, by definition, covers the entire range of visible color, so the data points are spaced further apart than in just about any RGB space. Hence when you convert, you get rounding errors.

    Whether or not these errors are visually significant depends upon

    the image
    the rgb space
    what you do to the image downstream

    You can get a result meaninglessly close to sharpening the lab channel by either

    1.) Sharpening RGB, then using Fade with the blend mode set to Luminosity, or

    2.) duplicating/merging to a new RGB layer, sharpening it, then setting the sharpend layer's blending mode to Luminosity.

    Either one will avoid the rounding errors.

    If you work with 16 bits per channel, the rounding error will almost certainly be insignificant, but converting to Lab is still a lost slower than either of the above alternatives, and if your file has adjustment layers, you'll have to either flatten before conversion or suffer significant color shifts because the layers behave differently in Lab and RGB.
    Bruce_Fraser@adobeforums.com Guest

  10. #10

    Default Re: RGB->LAB->RGB

    I actually use #2 sharpening method (darn I thought I invented that).
    JasonSmith@adobeforums.com Guest

  11. #11

    Default Re: RGB->LAB->RGB



    Many authors have encouraged switching to LAB mode to sharpen the L channel,
    and then back to RGB or CMYK.




    Yes, some do; but I've found it to be a dumb idea. Just loook at the color gamut in Lab and in RGB. Not hard to see that there has to be a degradation when you switch in and out of Lab.

    Bruce mentions two alternative ways of doing it, but I actually prefer a different, much better route suggested in --surprise!-- Bruce Fraser's "Real World Photoshop 7". It involves getting rid of noise in the blue channel and applying different degrees of Unsharp Masking and Fading to the red and green channels separately.

    Thanks, Bruce.
    Ramón_G_Castañeda@adobeforums.com Guest

  12. #12

    Default Re: RGB->LAB->RGB

    #2 has been my choice for quite awhile now. It's very versatile.
    Carl_Stawicki@adobeforums.com Guest

  13. #13

    Default Re: RGB->LAB->RGB

    Even better: Paint in the USM with the History Brush using varying opacities and Luminosity mode.
    Ann_Shelbourne@adobeforums.com Guest

  14. #14

    Default Re: RGB->LAB->RGB

    Thanks for all the good feedback. I've left the same question with Dan Margulis's color theory group as well.

    Have used all three methods recommended, but good to hear what others prefer.

    Gaining clarity on the LAB issue.

    Thanks again.
    Mark McIntyre Guest

  15. #15

    Default Re: RGB->LAB->RGB

    Where is Dan Margulis's color theory group? Can't possibly be as interesting as Bruce Fraser though. :)
    LRK@adobeforums.com Guest

  16. #16

    Default Re: RGB->LAB->RGB

    <http://groups.yahoo.com/group/colortheory/>
    Mark McIntyre Guest

  17. #17

    Default Re: RGB->LAB->RGB

    Ann, great idea.
    Mark McIntyre Guest

  18. #18

    Default Re: RGB->LAB->RGB

    I tried the sharpen individual red and green channel technique but always got tiny rainbow color affects (or chromatic aberations as some call it) on hard edges even in a tiff file. Jpeg was even worse.
    Tim_Lookingbill@adobeforums.com Guest

  19. #19

    Default Re: RGB->LAB->RGB

    Tim:

    I have found the same thing. I don't like the sharpen-in-color channels method -- UNLESS it is in Lab's "L" channel.
    Ann_Shelbourne@adobeforums.com Guest

  20. #20

    Default Re: RGB->LAB->RGB

    FWIW, the sharpening individual channels technique was developed when blue channels were a great deal noisier than they are today—I think the example came from a Polaroid PDC 1200, if anyone remembers those. It has been redacted from Real World Adobe Photoshop CS in favor of techniques that are less of a blunt instrument, but hey, if it works for someone...
    Bruce_Fraser@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139