Contrast Distortion Filter
The Contrast Distortion filter corrects and/or removes points that are affected by contrast distortion as a result of blurring in the camera lens. In the point cloud, this typically occurs in regions with high contrast (strong specular reflection), and in regions with large texture gradients.
The filter has two modes; correction and removal. How much a point is corrected in 3D space depends on the strength parameter. If removal is on, points experiencing large corrections will be removed if the correction is above the threshold parameter value. Both correction and removal can be turned on and off.
The filter works best when aperture values are chosen such that the camera has a good focus (see Depth of Focus for adjusting aperture accordingly). The higher the strength value is, the further are the points corrected. The higher the threshold value is, the stricter the filter is on removing points.
Caution
Contrast Distortion filter can overcompensate correction if strength is set too high!
For Zivid 2, Contrast Distortion filter is required to be enabled when using Stripe Engine. This is optional for Zivid 2+. Turning the filer off helps in preserving the sharpness of 3D edges.
When do you use the Contrast Distortion filter?
Correction
In applications such as bin picking, it is common to use matching algorithms based on models for object detection and localization. Using the correction component of this filter can make the resulting point cloud of an object better resemble the actual object and its CAD model.
Removal
In inspection applications, it is often desired to keep only the points with high confidence. Points affected with the contrast distortion are considered to have low confidence. The removal component of this filter can be used to remove these points.
Contrast Distortion filter adds the following processing time per 3D capture:
2+R | 2+ | 2 | ||||
---|---|---|---|---|---|---|
High-end NVIDIA | High-end Intel | High-end NVIDIA | High-end Intel | High-end NVIDIA | High-end Intel | |
Filters | ||||||
ContrastDistortionCorrection | 0 ms (±0) | 0 ms (±0) | 1.9 ms (±1) | 11 ms (±1) | 7 ms (±2) | 85 ms (±4) |
ContrastDistortionRemoval | 0 ms (±0) | 0 ms (±0) | 0.4 ms (±1) | 6 ms (±1) | 3 ms (±2) | 60 ms (±4) |
Version History
SDK |
Changes |
---|---|
2.0.0 |
Contrast distortion filter API is added. |