pcfromdepth
Syntax
Description
converts a depth image using camera intrinsics, into a point cloud. The output point cloud
is specified in 3-D world coordinates with its origin centered at the camera. The
ptCloud
= pcfromdepth(depthImage
,depthScaleFactor
,intrinsics
)depthScaleFactor
, normally provided by the RGB-D camera manufacturer
specifies a division factor for the depth image.
This function applies only for RGB-D cameras.
specifies options using one or more name-value arguments in addition to any combination of
arguments from previous syntaxes. For example,
ptCloud
= pcfromdepth(___,Name=Value
)pcfromdepth(depthImage,depthScaleFactor,intrinsics,DepthRange=[0,Inf])
sets the depth range to the 2-element vector value of [0,Inf]
.
Examples
Input Arguments
Output Arguments
References
[1] The TUM data set is provided by J. Sturm, N. Engelhard, F. Endres, W. Burgard and D. Cremers under the CC-BY-4.0 license license. All warranties and representations are disclaimed; see the license for details. MathWorks® modified the name of the RGB-D SLAM Dataset and Benchmark dataset to use in the example.
Extended Capabilities
Version History
Introduced in R2022b