How to Remove Moire in Photoshop

Moiré pattern is typically created when two grids are overlaid at an angle. In video and photography, the main grid is the sensor which records the image. The second grid can be anything from fine fabric to architecture patterns. When these two grids interact at a certain angle and distance from each other they can create a moiré pattern. These patterns manifest themselves as ugly colorful waves on fine texture areas of an image. Fortunately, most camera manufactures place anti-aliasing filters in front of digital sensors, which greatly reduces moiré occurrence. However, because these occurrences are so rare, many photographers do not even know that these annoying “colorful waves” are called moiré. Once in a while, in specific situations, virtually any camera will inevitably create an image with moiré effect. Unfortunately, moiré pattern is not visible through the viewfinder and because of the way most resize algorithms work; you may not even notice moiré effect on the preview screens. Most of the time you will only see it on your photos when it’s already too late to correct it optically. The good news is that it is possible to remove moiré in Photoshop. It is also possible to get rid of moiré pattern in other applications, such as Lightroom and Capture One 4 Pro, but for the purposes of this tutorial I will only focus on Adobe Photoshop CS6.

Moire effect exampleMoiré pattern is never pretty. Even though it’s often colorful and wavy, I always cringe when I see it pop its ugly effect on model’s clothing or furniture fabrics. Although I must give credit to camera manufacturers; they do their best in implementing all kinds of tricks to minimize moiré occurrences and these tricks works 99.9% of the time. Throughout my career I have had moiré pattern on 20-50 images at most, while I have shot hundreds of thousands of images. Additionally I have only had two or three images with moiré effect on my Canon 5D Mark II. Nikon, for example, offers two versions of its D800 camera – a standard model and D800E model, which has a different low-pass filter that produces sharper images, but creates moiré effect more often. Of course there are ways to avoid moiré during image creation (some of which I will describe at the end of this tutorial), but chances are, you are reading this tutorial because you already have an image with moiré effect and the only way remove it at this point is through post-processing. There are numerous ways to actually do it, but here I will go over the quickest way I know how to remove moiré in Photoshop, that also preserves image quality.

Step One: Remove false color

Above is an image from one of my recent fashion shoots. Overall, the photo looks nice, but because of model’s fine dress pattern, my distance to the subject and camera angle, moiré is all over her clothing. This is very distracting and obviously unacceptable. While it might be ok as a small thumbnail image, this file cannot go to print with such a horrid moiré pattern.

  1. Remove moire false colorThe first thing you should do is create a selection of the entire problematic area (in this case her whole dress) using Quick Selection tool and/or Magnetic Lasso tool. If you are not fluent in object isolation in Photoshop, check out this tutorial.
  2. Once you are confident that the selection is precise, create a new blank layer, select a Bucket tool, hold [Alt] on Windows or [Option] on Mac and click on the color best representing general selection color. Then let go of all the keys and click on the selection to fill the new layer with that color. I’ll name this layer “Dress”.
  3. Then set the blending mode of that layer from Normal to Color. Check out this tutorial if you are not familiar with blending modes.
  4. Finally, hide this “Dress” layer you’ve just created by clicking on a little eye icon next to it, we will need this layer at the end of this process.

Step Two: Remove the waves

Now that we’ve dealt with the color, we need to eliminate the wave pattern. If you check the channels of your image, you might discover that this wavy pattern is present in all three – red, green and blue channels to some degree. Therefore, we would need to repair the Luminosity Channel to minimize the visibility if these unwanted waves.

  1. Morie Remove WavesMake sure you load the same selection you’ve used for the “Dress” layer. To do this, you have to have the “Dress” layer selected and then go to Select>Load Selection on the top navigation bar.
  2. Now select the first/background layer and create a new layer above it with a blending mode set to Color. You can do this by pressing [Shift]+[Ctrl]+[N] on Windows or [Shift]+[Cmd]+[N] on Mac or going to Layer>New>Layer and select ‘Mode’ to ‘Color’, or just click on New Layer Icon in the Layers Panel and set Blending Mode to Color.
  3. Then fill this new layer with solid white color. You can do this by using a Paint Bucket tool or go to Edit>Fill ([Shift]+[F5]) and select Color to white. This will turn your selected area into Black and White. This layer is needed to be able to see the best Hue and Saturation combination at which moiré disappears.
  4. Now load the selection from the “Dress” layer again. Then select the first/background layer again and create a Hue/Saturation Adjustment layer above it. You can do this by going to Layer>New Adjustment Layer>Hue/Saturation. If you are not familiar with Adjustment layers, check out this tutorial.
  5. Now play with Hue and Saturation scales until the waves on the photo completely disappear. For this image I found that I need to set Hue at -87 and Saturation at -45 to make any traces of moiré pattern disappear. But remember, you must do this in Actual Pixels zoom level at 100%. Otherwise, if you are trying to adjust luminosity at other zoom levels, such as 33%, you can be wasting your time since the color patterns will not be representative of the real size.
  6. And now for the final touch, all you have to do is make the “Dress” top layer visible again.

In my case, these two steps removed moiré without a trace. However, you might encounter cases where there might still be some hint of moiré left. Depending on the image and the strength of moiré effect, the second step might not completely eliminate the waves; in that case you might need to supplement your workflow with additional tricks, such as Clone Stamp tool or Spot Healing Brush tool.

How to Avoid Moiré appearing in photos

Now that you know that removing moiré from images can be tedious and time consuming, you might ask “How do I avoid moiré while taking picture?” There are several easy things you can do to avoid moiré, but the most difficult thing is knowing that you are getting it on your images in the first place. Since moiré is usually not noticeable on LCD preview screens, it is recommended to zoom in to actual size on at least one image in the series if you are working with fine fabrics or macro shots, especially if you know your camera is prone to producing moiré. Here are some of the steps you can take to avoid moiré if you know you are getting it in your photos:

  1. Move away from your subject. Moiré often happens when the pattern detail you are capturing exceeds is at the frequency where camera’s anti-aliasing filter cannot engage to clean it up just yet. Often when you zoom out or step away a bit from that pattern anti-aliasing filter will kick in and moiré will disappear.
  2. Get closer to the subject. If you are at that distance where moiré appears and camera’s anti-aliasing filter can’t deal with it and you can’t get farther or zoom out, then get closer or zoom in on the subject. When you do that, the texture frequency goes down (because it gets bigger in relation to your sensor) and then the pattern will be easily picked up by your sensor, since the texture would not exceed its resolution anymore.
  3. Change your angle. Changing angle can eliminate virtually all moiré because the texture’s interaction with the sensor also changes.
  4. Increase depth of field. If the texture that that produces moiré is not the main subject of the image, try to have a shallow depth of field (make everything around subjects plane blurry) by opening up your aperture. If you are not fluent with aperture settings and depth of field check out this article.
If you have enjoyed this post and wish to receive updates on any future posts subscribe, like and follow us!
This entry was posted by Alex Gumerov.

Leave a Reply

Your email address will not be published. Required fields are marked *