Documentation

pcplayer

Visualize streaming 3-D point cloud data

Description

Visualize 3-D point cloud data streams from devices such as Microsoft®Kinect®

To improve performance,pcplayer在与图的交互过程中,自动缩小了渲染点云。下采样仅用于呈现点云,不会影响保存点。

You can set the default center of rotation for the point cloud viewer to rotate around the axes center or around a point. Set the default behavior from the计算机视觉工具箱首选项

Creation

Description

example

player = pcplayer(xlimits,ylimits,zlimits)returns a player withxlimits,ylimits, 和zlimitsset for the axes limits.

example

player = pcplayer(xlimits,ylimits,zlimits,Name,Value)returns a player with additional properties specified by one or moreName,Value配对参数。

Input Arguments

expand all

Range ofx- 轴坐标,指定为格式的1 by-2矢量[minmax]。pcplayerdoes not display data outside these limits.

Range ofy- 轴坐标,指定为格式的1 by-2矢量[minmax]。pcplayerdoes not display data outside these limits.

Range ofz- 轴坐标,指定为格式的1 by-2矢量[minmax]。pcplayerdoes not display data outside these limits.

Name-Value Pair Arguments

Specify optional comma-separated pairs ofName,Value参数。Nameis the argument name and价值是相应的值。Namemust appear inside quotes. You can specify several name and value pair arguments in any order asNAME1,Value1,...,Namen,Valuen

Example:'VerticalAxisDir','Up'

Diameter of marker, specified as the comma-separated pair consisting of 'MarkerSize' and a positive scalar. The value specifies the approximate diameter of the point marker. MATLAB®graphics defines the unit as points. A marker size larger than six can reduce the rendering performance.

垂直轴,指定为逗号分隔对,由'垂直' and'X','Y', or'Z'。When you reload a saved figure, any action on the figure resets the vertical axis to thez-axis.

垂直轴方向, specified as the comma-separated pair consisting of '垂直线索' and'Up'或者'向下'。当您重新加载一个保存的图形时,该图上的任何动作都将方向重置向上方向。

Properties

expand all

玩家轴的处理, specified as anaxesgraphics object.

Usage

图中的颜色和数据点值

查看订单int data or modify color display values, hover over the axes toolbar and select one of the following options.

Feature Description
Datatip

Click数据提示to view the data point values for any point in the point cloud figure. For a normal point cloud, the数据提示displays thex,y,zvalues. Additional data properties for the depth image and lidar are:

Point Cloud Data 数据值属性
Depth image (RGB-D sensor) Color, row, column
Lidar Intensity, range, azimuth angle, elevation angle, row, column

背景颜色

ClickRotateand then right-click in the figure for background options.

结肠值

ClickRotateand then right-click in the figure for colormap options. You can modify colornap values for the coordinate and range values available, depending on the type of point cloud displayed.

View

ClickRotate要将点云图的视角更改为XZ,ZX,YZ,ZY,XY, or theYXplane. Click还原视图to reset the viewing angle.

OpenGL Option

pcplayersupports the'opengl'option for theRendererfigureproperty only.

Object Functions

隐藏 Hide player figure
isOpen Visible or hidden status for player
show Show player
view Display point cloud

Examples

collapse all

Create the player and add data.

player = pcplayer([0 1],[0 1],[0 1]);

Display continuous player figure. Use theisOpenfunction to check if player figure window is open.

尽管isOpen(player) ptCloud = pointCloud(rand(1000,3,'single')); view(player,ptCloud);end

通过关闭PCPlayer图窗口终止环。

在R2015B中引入