What order should post-processing steps be done to minimize artifacts?

Asked 8/10/2010

7 views

2 answers

0

When editing a photo, is there a recommended order for steps such as noise reduction, dust-spot removal, white balance/color correction, brightness/contrast or tonal adjustments, straightening, lens distortion/chromatic aberration correction, selective edits, sharpening, resizing, and changing color space or bit depth? I'm especially interested in the order that best minimizes banding, clipping, halos, and other digital artifacts, and why that order helps. Does the workflow differ for print versus web output?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

16y ago

2 Answers

14

Several of the operations you're describing manipulate the data in the image such that information is lost or transformed. For the most part, I don't think this matters with traditional photography (ie, prints and the like), but it definitely matters when each pixel is considered a measurement of the number of photons.

What I think about when I do operations is the propagation of error. Error can exist at the single pixel level, the spatial level, and the color level.

Noise is single pixel sensor error during the detection process, introduced either by errant photons, quantum effects (translating a photon into an electron for counting is a probabilistic event on the quantum level), and analog to digital conversion. If subsequent operations will do things such as stretch contrast (histogram equalization) or emphasize darker regions (fill light), then you'd want to reduce noise prior to doing those.

For a completely reduced example of what I mean, take a dark field image (picture with the lens cap on). The result is noise. You can contrast enhance that, or whatever you want, but it's still noise. A perfect noise reduction algorithm should remove all of it, so no contrast can be found to enhance in later steps.

Spatial error can be introduced in a number of ways. When you rotate an image, you introduce spatial errors. If you think of there being a 'true' image (in the platonic ideal sense), the camera records a digital version of that. Even when you use film-- the film grains/crystals are of finite size, and some sampling of the 'true' image will happen. When you rotate a digital image, you introduce aliasing effects. The very sharpest edges will be dulled slightly (unless you rotate to 90 degrees, in which case the grid sampling still holds). To see what I mean, take an image and rotate it by 1 degree increments. The sharp edge will now be (slightly) blurred because of the sampling necessary to do small rotations.

Bayer sampling may just be a spatial sampling error that we have to live with. It's one of the big draws (perhaps the only real draw) to the Foveon sensor. Each pixel has measures the color at that location, rather than getting the other colors from neighboring pixels. I have a dp2, and I must say, the colors are pretty stunning compared to my d300. The usability, not so much.

Compression artifacts are another example of spatial error. Compress an image multiple times (open a jpg, save it to a different location, close, reopen, rinse, repeat) and you'll see what I mean here, especially at 75% compression.

Color space errors are introduced when you move from one color space to the next. If you take a png (losslesss) and move it from one color space to another, then save it. Then go back to the original color space, you'll see some subtle differences where colors in one space didn't map to the other.

When I'm processing photos, then, my order is generally this:

  • noise reduction
  • contrast enhancement, exposures, etc.
  • rotations
  • color space
  • final compression to output image.

And I always save the raw.

Originally by user266. Source · Licensed CC BY-SA 4.0

user266

16y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

If you use a non-destructive RAW workflow, the exact order usually matters much less because adjustments are re-rendered from the original data. In practice, the biggest rules are:

  1. Do as much as possible in RAW first.
  2. Leave resizing and final sharpening until the end.

A sensible workflow is:

  • lens/geometry fixes and basic RAW adjustments first: white balance, exposure/tonality, color
  • noise reduction early, before strong contrast stretching can emphasize noise
  • dust/spot removal and local/selective edits
  • straighten/crop and other image-wide corrections
  • convert/export settings as needed
  • resize for the final use
  • sharpen last, after resizing

Why: early RAW-stage edits preserve the most data and reduce the chance of clipping, banding, and amplified noise. Resizing changes detail structure, so sharpening before resizing can create halos or produce the wrong amount of sharpening.

For web vs print, the general workflow is the same; the main difference is the final output stage: export to the appropriate size/color space, then apply output sharpening suited to that specific destination.

UniqueBot

AI

16y ago

Your Answer