Ripples (Wavy Patterns) in the Point Cloud
Ripples (wavy patterns) in the point cloud have three common causes, each with its own fix:
Zivid 3 with SDK 2.18 and earlier: update to SDK 2.19 or later.
Ambient light interference: synchronize exposure times to the grid frequency (50 Hz or 60 Hz), or remove the flickering light.
Interreflections: choose a vision engine that reduces ripples, and tune the smoothing filters.
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.
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.
Ripple is often easiest to see in the normal map.
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.
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.
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;
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.");
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.
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: 잔물결이 지속되면 잔물결이 제거되거나 충분히 줄어들 때까지
sigma값을 점차 늘립니다.
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.
문제를 식별하세요
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.
올바른 Vision Engine을 선택하세요
Stripe Engine, Sage Engine, 또는 Omni Engine: 이러한 엔진은 자연스럽게 파급 효과를 줄이므로 추가적인 억제가 필요하지 않을 수 있습니다.
Phase Engine : 속도가 우선이지만 잔물결이 나타날 가능성이 더 높은 경우 이 엔진을 사용하세요. 억제를 위해 다음 단계를 따르세요.
스무딩 필터 조정
Noise Filter Suppression: Enable this filter and check whether the ripples are removed or reduced.
Gaussian Smoothing: 잔물결이 지속되면 잔물결이 제거되거나 충분히 줄어들 때까지
sigma값을 점차 늘립니다.
객체 모양에 미치는 영향 평가
필터링을 적용한 후, 스무딩이 장면의 가장자리와 모양에 어떤 영향을 미쳤는지 주의 깊게 평가해 보세요. 아래 그림은 이 시나리오에서 스무딩의 효과를 보여줍니다.
객체가 손상되지 않고 애플리케이션에서 인식 가능한지 확인하세요. 예를 들어, 픽 포즈를 결정하거나 CAD 기반 매칭을 수행하는 알고리즘은 선명한 모서리와 정확한 모양을 필요로 합니다. 스무딩으로 인해 모서리가 왜곡되거나 모양이 너무 많이 변형되는 경우, Gaussian 필터
sigma를 줄이거나 Noise FilterSuppression해제하여 균형을 찾으세요.이 필터는 광택이 나는 금속 원통과 같이 대비가 높은 물체의 형태를 보존하는 데 매우 중요합니다. 이러한 물체는 contrast distortion artifacts 가 발생하기 쉽습니다. 이러한 경우에는 필터를 활성화 상태로 유지하세요. 대비 왜곡 문제가 없는 장면에서는 불필요한 스무딩을 최소화하기 위해 이 필터를 비활성화하세요.