Help CenterHelp Center
Compute gradient of truncated signed distance field
Since R2024a
grad = gradient(mTSDF,points)
grad = gradient(mTSDF,points,InterpolationMethod=interp)
grad = gradient(mTSDF,points) returns the gradient voxels in the vicinity of the specified query points in the truncated signed distance field (TSDF).
grad
mTSDF
points
grad = gradient(mTSDF,points,InterpolationMethod=interp) specifies the method to use for interpolating the distance field.
interp
collapse all
meshtsdf
Truncated signed distance field for 3-D meshes, specified as a meshtsdf object.
Example: meshtsdf(meshes,TruncationDistance=5) creates a TSDF for the specified meshes with a truncation distance of 5 meters.
meshtsdf(meshes,TruncationDistance=5)
5
Query points, specified as an N-by-3 matrix, where each row represents an xyz point. N is the total number of query points.
"linear"
"quadratic"
Interpolation method, specified as one of these options:
"linear" — Compute the partial derivatives of the trilinearly-interpolated distance field.
"quadratic" — Compute the partial derivatives of the triquadratically-interpolated distance field.
Gradient values of voxel at each query point, specified as an N-element vector. N is the total number of query points specified in points.
By default, gradient uses the linear interpolation method to determine the gradient. Use the interp argument to change the interpolation method.
gradient
Introduced in R2024a
meshtsdf | distance
distance
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office