MATLAB 帮助中心
Find gradient for query points in 3-D signed distance map
Since R2024b
grad = gradient(sdm3D,points)
grad = gradient(sdm3D,points,InterpolationMethod=interp)
grad = gradient(sdm3D,points) finds the gradient from voxels in the vicinity of the specified query points in the 3-D signed distance field.
grad
sdm3D
points
grad = gradient(sdm3D,points,InterpolationMethod=interp) specifies the method to use to interpolate the distance field.
interp
collapse all
signedDistanceMap3D
3-D signed distance map, specified as a signedDistanceMap3D object.
Example: signedDistanceMap(Resolution=2) creates a 3-D signed distance map with a grid resolution of 2 cells per meter.
signedDistanceMap(Resolution=2)
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 value of the voxel at each query point, returned 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
expand all
Introduced in R2024b
signedDistanceMap3D | distance
distance
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处