Depth Profile
Depth Profile is a Zivid Studio tool that plots the point cloud Z values along a line between two points, giving a cross-section of the surface along that line. You pick the points in any 2D view, not in the 3D View. The graph header shows the depth difference, which is the highest minus the lowest Z value along the line. Use it to check small height differences that are hard to judge in the 3D View, such as the depth of a hole, the height of a step, or the profile of a weld seam or a gasket.
참고
Depth Profile is only available in Zivid Studio. The Zivid SDK API has no equivalent function.
Picking the profile line
To pick the line for a depth profile:
Capture a point cloud or open a ZDF file.
Click Tools → Depth Profile, or press Z. While you pick, the menu item reads Cancel Depth Profile.
Click the start and the end point of the line.
To adjust the depth profile:
Drag either endpoint of the line to move it. The depth profile updates while you drag.
Press Z again and pick two new points to measure along a new line.
Capture again or change the transform to update the depth profile for the same line.
Reading the profile graph
The graph header shows Z max − min, the depth difference along the line, which is the maximum Z value minus the minimum Z value.
The detach button opens the graph in a separate, resizable Depth Profile window, where small details are easier to see. Click it again to move the graph back into the main window, or close the window to remove the depth profile. In the main window, the × button next to it removes the depth profile.
The vertical axis is the Z value of each point along the line. Only the minimum and maximum Z values are labeled. Each point has the color of its Z value in the Depth view. Points outside the Z range of the Depth view are not drawn, but they still count in the depth difference.
The horizontal axis is the distance along the line in the 2D image, in pixels.
Points without valid data are left out of the graph. A line that crosses missing data, for example in the shadow next to an object edge, shows a gap instead of a slope that was never measured.
In this example, the line crosses a row of holes in a plate that is tilted slightly relative to the camera. The Z values rise from about 602 mm to 613 mm along the line, so the depth difference of 10.84 mm mixes the tilt with the depth of the holes. Measuring heights above a surface shows how to measure the holes relative to the plate instead.
Measuring heights above a surface
Without a transform, Z values are distances from the camera. To measure heights relative to a surface, such as the depth of a hole below a plate, transform the point cloud to that surface with the Region of Interest box:
Place the Region of Interest box so that
PointO,PointAandPointBare on the surface.
Click Transform → Transform to ROI box. This needs a connected camera with the Region of Interest box enabled in its settings.
If you only have a ZDF file and no camera, click Transform → Load transform instead and load a transformation matrix that you computed for the surface.
With this transform, Z values are heights above the surface, and points below the surface have negative Z values. The depth profile updates for the same line.
In this example, the plate is now flat at Z = 0, and each hole shows as a dip below the plate. The holes get deeper along the row, and the depth difference of 5.34 mm is the depth of the deepest hole.
팁
The depth difference comes from single points, so if one is noisy, it can change the depth value. For a more robust measurement, average the Z values over each surface, for example the bottom of the hole and the plate around it, and take the difference. Depth Profile can’t do this, but you can do it in your own code with the Zivid SDK.
Continue reading about Zivid Studio in Help.