In this article, I will show you how you can reduce the effect of moiré in Adobe Photoshop. With the release of the Nikon D800E, which has a different low-pass filter compared to the regular version of the D800 (see Nikon D800 vs D800E), it seems like Nikon opened up a can of worms as it relates to a phenomenon known as “moiré“. For the first time, Nikon is letting photographers pick between two versions of the same camera: one that yields sharper images at a cost of potentially having moiré in images (D800E) and one that yields slightly softer images but has no issues with moiré (D800). This quickly created tremendous interest from photographers, many of whom never even heard of the term “moiré” before the Nikon D800E. Questions started pouring in from everywhere and I spent quite a bit of time trying to explain what moiré is all about and how one could avoid or reduce its effect. This seems to be a primary concern for landscape and macro photographers that also enjoy photographing architecture and portraits (where moiré is seen quite often). Below you will find detailed instructions on how to reduce the effect of moiré in Photoshop.
Can Moiré be completely removed in Photoshop?
Unlike Lightroom 4, which has a built-in tool to reduce moire (and in some mild cases even eliminate it), Photoshop has no automated way of reducing or removing moire. Because of this, there are literally dozens of different methods you can use to deal with moire. I have tried a number of them and I found the below method to work best for the worst moire-infested photographs out there. Most other methods use some sort of blurring technique that actually degrades image quality, which is why I prefer this one instead. If you work with the original file (RAW is preferred), you will definitely get better results than if you work with a small JPEG image (as I will be doing below). While it is possible to completely remove moire in Photoshop, the process can be very time consuming and painful. This is the reason why I have been recommending most of our readers to buy the regular version of the Nikon D800 instead of the D800E. The latter is a specialized tool for dedicated landscape and macro photographers that want to get the best out of their equipment. The last thing you want is introduce another step to your workflow in order to clean up moiré, just because you picked up the wrong camera.
Step One: Remove the Rainbow Pattern
Removing moire in Photoshop is done in two steps – the first one removes the rainbow pattern of moire and the second one takes care of the Luminance channel pattern. Let’s get started with the same jacket image I presented in “what is moiré” article. I decided to use this image, because it has a very strong moiré pattern with yellow and green rainbow discolorations. This type of moiré is pretty much a worst-case scenario:
(Image courtesy of photo.net)
- Once you have the photo with moiré open in Photoshop, the first thing we’ll do is make a selection of the entire area that contains moire. You can use different tools to accomplish this. I used Magnetic Lasso Tool, along with the Quick Mask Mode to make the below selection:
- Now use the Eyedropper tool (“I” shortcut) to select a foreground color. Make sure to pick the color from the selection – I used the top left side of the jacket.
- Next, create an empty layer by going to Layer->New->Layer, then select “Color” under “Mode”:
- With the new layer selected, go to Edit->Fill (Shift+F5), pick “Foreground Color” under Contents->Use and click OK:
What the above step does, is it paints the selected area with the same or similar color as the fabric that contains moire. This, in turn, removes the rainbow pattern from the fabric completely, because the layer blend mode is set to “Color”.
The first step is complete – we have successfully removed the rainbow pattern from the affected area, as can be seen below:
If the color of the fabric changes/looks different, try going back to step #2 and selecting a slightly different variation of color that more closely matches the whole fabric.
Step Two: Repair the Luminosity Channel
Now that the ugly rainbow pattern has been removed, we can now move on to repairing the luminosity channel – the wavy forms that are left from moire. This part is much more complex than the first one and might need some tweaking to get the best results. In some cases you might not be able to completely fix the luminosity channel, so you might need to introduce other tools (such as the blur tool) to minimize its effect.
- First, hide the lastly created layer by clicking the eye right in front of the layer.
- Make sure that the selected area stays selected. Now select the background/first layer (the original image) and create another layer, just like we did in step #3 in Step 1. Go to Layer->New->Layer and again set the “Mode” to “Color. Click OK
- Once again, go to Edit->Fill (Shift+F5), but this time select “White” under Contents->Use:
- The selected part of the image should now become black and white and the luminosity channel with the lines/patterns should be still visible:
- Again, click the background/first layer and go to Layer->New Adjustment Layer->Hue/Saturation. Your Layers panel should look like this:
- Right above that panel you should see the “Adjustments” panel that looks like this:
Now the idea of this particular step is to adjust the “Hue” and “Saturation” levels until the Luminance moire patterns are completely removed. Make sure that you are looking at the problem area at 100% view in Photoshop. With the “Hue/Saturation” layer selected, start adjusting the “Hue” level with your mouse. Slowly move all the way to the left and watch the problem area, then do the same by moving it to the right. You will find that the pattern gets more pronounced as you move to the extreme left or to the extreme right, while values in between will minimize the pattern. For this particular image, a Hue value of “-40″ seemed to be give me the best result.
- Next, do the same with “Saturation”, by moving the slider slowly from left to right. Again, you will find that the extreme values will make the pattern even more visible. Sometimes moving this slider will accomplish nothing, as in the case of this particular image (I left the “Saturation” level at “0″). By now, most of the pattern problems should have disappeared from the selected area.
- The last step is to turn the second layer on by clicking on the eye in front of the layer. This will make the second layer visible and the normal fabric colors should come back.
- Go to Layers->Flatten Image to merge all layers and flatten the image.
Here is a before and after:
Looks much better, but it is not perfect. The smaller patterns are still visible, because they are present in all color channels. Removing those could be a much more tedious task, involving clone/blur tools to remove moire completely. But it is doable. If you work with the original RAW file, you can use the above technique with a combination of the down-sampling process in Photoshop to get much better results.