Ripples (Wavy Patterns) in the Point Cloud

Ripples (wavy patterns) in the point cloud have three common causes, each with its own fix:

Problem

The point cloud shows ripples (wavy patterns) that make flat surfaces look uneven and distort object shapes. The ripples look different depending on the cause; compare your point cloud with the examples below.

  • Zivid 3 with SDK 2.18 and earlier: faint, irregular waviness on large flat surfaces, which can appear in some areas of the field of view and not in others.

  • Ambient light interference: strong, straight, parallel stripes across the whole point cloud, on the objects as well as on the background.

  • Interreflections: parallel waves on surfaces that receive light reflected from a nearby shiny surface, such as the bin floor next to a shiny bin wall.

Zivid 3 with SDK 2.18 and earlier: faint, irregular waviness on a flat surface. Zivid 3 with SDK 2.18 and earlier: faint, irregular waviness on a flat surface.
Ambient light interference: straight parallel stripes across the whole point cloud. Ambient light interference: straight parallel stripes across the whole point cloud.
Interreflections: parallel waves on the bin floor next to a shiny bin wall. Interreflections: parallel waves on the bin floor next to a shiny bin wall.

Potential causes

Zivid 3 with SDK 2.18 and earlier

Zivid 3 point clouds captured with the Stripe engine with SDK 2.18 and earlier can show ripple. Not all units show it, and on units that do, it can appear in some areas of the field of view and not in others, which also varies from unit to unit. To confirm this cause, check that the camera is a Zivid 3, the vision engine is Stripe, and the SDK version is 2.18 or earlier.

Ambient light interference

The scene is illuminated by strong ambient lighting, which operates on an alternating current (AC) power supply. This light flickers due to the power grid frequency, and the exposure settings are not adjusted to compensate for this frequency. As a result, the ambient light interference introduces ripples in the point cloud. To confirm this cause, turn off the ambient lights or block them from the scene and capture again; the ripples disappear.

Interreflections

The projector light from the Zivid camera is intended to reflect directly off the workpieces back to the camera. However, the light also reflects off shiny bin walls or nearby objects, creating additional reflections that interfere with the direct signal. This phenomenon, called interreflection, causes ripples in the point cloud. To confirm this cause, examine the 2D image for light reflected from shiny surfaces onto the area with ripples.

Potential solutions

Update the SDK for ripples in Zivid 3 point clouds

If ripples appear in Zivid 3 point clouds captured with the Stripe engine with SDK 2.18 and earlier, update to SDK 2.19 or later. SDK 2.19 removes ripple from Zivid 3 point clouds without smoothing away detail, with no settings change needed.

Zivid 3 point cloud captured with SDK 2.18. Zivid 3 point cloud captured with SDK 2.18.
The same scene captured with SDK 2.19. The same scene captured with SDK 2.19.

Ripple is often easiest to see in the normal map.

Normal map of a Zivid 3 capture with SDK 2.18, with diagonal ripple stripes on the flat background. Normal map of a Zivid 3 capture with SDK 2.18, with diagonal ripple stripes on the flat background.
Normal map of the same scene captured with SDK 2.19, without the ripple stripes. Normal map of the same scene captured with SDK 2.19, without the ripple stripes.

If you still see ripples after updating, check whether ambient light interference or interreflections cause them.

Compensate for ambient light interference

If ripples are caused by flickering ambient light, synchronize the exposure times to the grid frequency, or remove the flickering light.

Modify capture settings

First, identify the ambient light (grid) frequency in your region.

Open Zivid Studio and connect to your camera. Click on the three dots in the Capture section. Then click Measure scene lighting conditions. The software will display the detected ambient light flicker frequency.

../../_images/studio-measure-ambient-light.png

Alternatively, use the SDK to measure the ambient light conditions. This method will report whether significant ambient light flicker is detected and if it corresponds to a 50 Hz or 60 Hz power grid.

Go to source

source

std::cout << "Measuring scene conditions" << std::endl;
auto sceneConditions = camera.measureSceneConditions();
auto flickerClassification = sceneConditions.ambientLight().flickerClassification().toString();
std::cout << "Flicker classification: " << flickerClassification << std::endl;
    auto flickerFrequency = sceneConditions.ambientLight().flickerFrequency();
    std::cout << "Measured flickering frequency in the scene: " << flickerFrequency << " Hz." << std::endl;
Go to source

source

Console.WriteLine("Measuring scene conditions");
var sceneConditions = camera.MeasureSceneConditions();
var flickerClassification = sceneConditions.AmbientLight.FlickerClassification.ToString();
Console.WriteLine("Flicker classification: " + flickerClassification);
    var flickerFrequency = sceneConditions.AmbientLight.FlickerFrequency;
    Console.WriteLine($"Measured flickering frequency in the scene: {flickerFrequency} Hz.");
Go to source

source

print("Measuring scene conditions")
scene_conditions = camera.measure_scene_conditions()
flicker_classification = scene_conditions.ambient_light.flicker_classification
print(f"Flicker classification: {flicker_classification}")
    flicker_frequency = scene_conditions.ambient_light.flicker_frequency
    print(f"The measured flickering frequency in the scene: {flicker_frequency} Hz.")

Use appropriate Presets

If you are using Presets, select the ones tailored for 50 Hz or 60 Hz. These can be found in Zivid Studio or on the Presets page.

Adjust settings manually

If you have manually configured settings, ensure your exposure times are synchronized to your region’s grid frequency.

Use sampling rates (exposure times) in the multiples of the grid period in the presence of strong flickering ambient light sources:

  • Multiples of 10 000 µs in the presence of 50 Hz grid frequency.

  • Multiples of 8 333 µs in the presence of 60 Hz grid frequency.

Exposure times synchronized to the grid frequency eliminate ripples caused by ambient light, as shown in the image below. Keep in mind that the capture time will likely increase with exposure times compensated for the grid frequency.

Steel caps captured with exposure times not synchronized to the grid frequency, with ripples. Steel caps captured with exposure times not synchronized to the grid frequency, with ripples.
The same steel caps captured with exposure times synchronized to the grid frequency, without ripples. The same steel caps captured with exposure times synchronized to the grid frequency, without ripples.

Modify filters

If you cannot afford the increased capture time, consider adjusting the following filters to suppress ripples caused by ambient light:

  • Noise Filter Suppression: Enable this filter and check whether the ripples are removed or reduced.

  • Gaussian Smoothing: If ripples persist, gradually increase the sigma value until the ripples are removed or sufficiently reduced.

Steel caps captured without filters, with ripples. Steel caps captured without filters, with ripples.
The same steel caps captured with Noise Filter Suppression and Gaussian smoothing, with reduced ripples. The same steel caps captured with Noise Filter Suppression and Gaussian smoothing, with reduced ripples.

Prevent ambient light

The best way to deal with ambient light is to eliminate it.

Turn off unnecessary light sources near the Zivid camera.

If removing light sources is not possible, block their illumination by using light barriers around the scene. These barriers do not need to be solid; dark curtains or similar materials will suffice.

Change ambient light

If removing ambient light is not feasible, consider using light sources that do not flicker due to AC power supplies.

Choose DC-powered lights such as spotlights or LEDs with a frequency of ≥1 kHz. These will reduce flicker and prevent color inconsistencies in your images.

Suppress ripples from interreflections

If ripples are caused by interreflections, choose a vision engine that reduces ripples, and tune the smoothing filters if ripples persist.

  1. Identify the problem

    Examine the 2D image for signs of light reflections, particularly from shiny bin walls onto objects. For example, in the image below, light clearly reflects from the bin wall onto the envelopes on the bin floor. Such interreflections result in the ripples shown in the interreflections example in the Problem section.

    ../../_images/ripple-suppression-shiny-bin.png
  2. Choose the right vision engine

    • Stripe Engine, Sage Engine, or Omni Engine: These engines naturally reduce ripple effects, so further suppression may not be needed.

    • Phase Engine: Use this engine if speed is a priority, but ripples are more likely to appear; follow the next steps for suppression.

  3. Adjust smoothing filters

    • Noise Filter Suppression: Enable this filter and check whether the ripples are removed or reduced.

    • Gaussian Smoothing: If ripples persist, gradually increase the sigma value until the ripples are removed or sufficiently reduced.

    For very shiny bins, ripples can occur due to interreflections from the bin wall onto the bin floor and objects. For very shiny bins, ripples can occur due to interreflections from the bin wall onto the bin floor and objects.
    The ripples on the bin floor are suppressed with the Gaussian filter (sigma value of 2 is used in this case). The ripples on the bin floor are suppressed with the Gaussian filter (sigma value of 2 is used in this case).
  4. Evaluate the effect on object shapes

    After applying filtering, carefully assess how smoothing has affected the edges and shapes in the scene. The figures below illustrate the effects of smoothing in this scenario.

    • Ensure that objects remain intact and recognizable for your application. For example, algorithms that determine pick poses or perform CAD-based matching rely on clear edges and accurate shapes. If smoothing distorts edges or deforms shapes too much, reduce the Gaussian Filter sigma or turn off Noise Filter Suppression to find a balance.

    • This filter is crucial for preserving the shapes of high-contrast objects, such as shiny metal cylinders, which are prone to contrast distortion artifacts. Keep the filter enabled in such cases. For scenes without contrast distortion issues, disable this filter to minimize unnecessary smoothing.

An example of an edge where there are data points on both the upper surface and adjacent surfaces. An example of an edge where there are data points on both the upper surface and adjacent surfaces.
This type of edge is smoothed when the Gaussian filter is used for ripple suppression. This type of edge is smoothed when the Gaussian filter is used for ripple suppression.
The edge is more smoothed when the Gaussian filter and the contrast distortion filter are combined. The edge is more smoothed when the Gaussian filter and the contrast distortion filter are combined.
An example of an edge where there are only data points on the top surface due to its position relative to the projector. An example of an edge where there are only data points on the top surface due to its position relative to the projector.
This type of edge is minimally smoothed when the Gaussian filter is used for ripple suppression. This type of edge is minimally smoothed when the Gaussian filter is used for ripple suppression.