cuboid2img
Syntax
Description
projects the 3-D cuboids into an image using the image data and camera intrinsic parameters
specified by the projection matrix. The function returns the image with projected
cuboids.projectedCuboid
= cuboid2img(cuboid
,projectionMatrix
)
[
returns a logical array that indicates which input cuboid projections are within the field
of view of the camera, using the input arguments from the first syntax.projectedCuboid
,validIndex
] = cuboid2img(___)
[
returns the face vertices of each projected cuboid to facilitate visualization of specific
projected cuboid faces. You can use the projectedCuboid
,validIndex
,allFaceVertices
] = cuboid2img(___)showShape
or
insertShape
function to visualize the
projected cuboid faces.
[___] = cuboid2img(___,
specifies options using one or more name-value arguments in addition to any combination of
arguments from previous syntaxes. For example,
Name=Value
)cuboid2img(data.cuboid,projectionMatrix,OutputFormat="rectangles")
specifies to output each cuboid as two projected cuboid faces forming axis-aligned
rectangles.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2022b