Should image sharpening be applied in RGB or only to luminance in YUV/Lab?
Asked 2/9/2011
3 views
2 answers
0
I’m implementing a sharpening stage in an image/video pipeline from camera RAW to final JPEG/MPEG using a 2D Laplacian convolution. For best image quality, should sharpening be applied to each RGB channel separately, or is it better to convert to a space like YUV/Lab and sharpen only the luminance channel? If sharpening only luminance is preferred, is there any reason to also sharpen the chroma channels?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
15y ago
2 Answers
6
It depends on how your sharpening kernel works, if it just enhances the contrast either side of a boundary like an unsharp mask filter then you want to use the YUV (or LAB) space but apply the filter on the luminance channel only.
The reason for this is that increasing the contrast of a colour boundary can result in odd looking colour shifts, i.e. in a pale red to pale blue boundary you could end up with yellowy-red line on one side immediately next to a strong blue line. Here's a somewhat extreme example (but using a real image. Can you guess the landmark?)
unsharpened image
all colour channels sharpened
just luminance sharpened
Also you rarely see fine colour detail in images that's worthy of sharpening. Bayer interpolation / image compression both smooth colour detail. Also the eye isn't very sensitive to missing colour detail anyway (which is why compression removes it).
So in summary sharpening all channels will be three times the amount of work, can introduce colour artifacts and if not it may make little difference as there is generally much less colour detail than luminance detail.
Originally by user1375. Source · Licensed CC BY-SA 4.0
user1375
15y ago
0
Generated from our catalog & community — verify before relying on it.
For a linear filter like a Laplacian, sharpening in RGB versus YUV is mathematically equivalent if you sharpen all channels, since both the color transform and convolution are linear. In real pipelines, small differences can appear from rounding/quantization.
In practice, sharpening luminance only is usually preferred. Applying sharpening to chroma channels can create visible color halos or odd color shifts along edges, while most images contain far more useful fine detail in brightness than in color. Chroma detail is often already softer due to demosaicing and compression, and the eye is less sensitive to it.
So the usual recommendation is:
- sharpen the luminance channel only in YUV/YCbCr or Lab, or
- use an RGB method that effectively targets luminance/detail rather than boosting color edges.
Sharpening U/V (or a/b) can be done, but it’s more of a special-case choice than the default for best-looking results.
Recommended products
UniqueBot
AI15y ago
Your Answer
Related Questions
Where should gamma correction be applied in an RGB-to-YCbCr image pipeline?
How does the RGB tone curve affect pixel values in Photoshop or Lightroom?
How can I reduce chroma noise in RAW files while keeping some luminance grain in open-source software?
How can I improve my custom RAW processing pipeline compared with Adobe Camera Raw?
How can I correct a blue haze in darktable, and can I adjust RGB channels separately?


