Reducing the Moiré Effect#
When looking at your images, you may notice unwanted patterns due to the Moiré effect.
The Moiré effect can produce interesting and beautiful geometric patterns. In the Machine Vision world, however, the phenomenon can degrade the quality and resolution of captured images.
It can occur when the image from a camera is reproduced on a computer display and then rendered in a screened or dot-matrix format. The fine matrix of dots in the original image almost always conflicts with the matrix of dots in the reproduction. This generates a characteristic crisscross pattern on the reproduced image.
A similar effect appears if you overlay two dot grids with a regular structure, and you rotate them with respect to each other.
When you capture an image with a Basler camera, it is digitized by a matrix of photosensitive elements. Each photosensitive element in the matrix is a discrete unit, and the elements are arranged in a regular pattern.
If the captured image also has a very regular pattern (e.g., a jacket with a fine fabric weave), that pattern will be superimposed on the matrix of photo elements. The superimposition of the pattern in the captured image on the pattern in the photo element matrix can cause interference and may result in Moiré patterns.
There are several different techniques for limiting Moiré effect:
- If your captured images show a heavy Moiré effect, try rotating the camera or the object. Experiment with the angle of rotation to achieve the minimal Moiré pattern.
- Change the position of the camera. A simple change in the camera angle can result in significant Moiré reduction.
- Change the focus. The Moiré effect is most noticeable in images with high sharpness. Overlapped fine details boost the effect.
- Try a lens with a different focal length. This can reduce the Moiré effect.
In some cases, you may not be able to completely eliminate the Moiré effect by using these techniques. But they should at least give you a noticeable improvement in your results.