www.gusucode.com > vision 源码程序 matlab案例代码 > vision/TerminateAPointCloudPlayerExample.m

    %% Terminate a Point Cloud Processing Loop
% Close the display of continuous point cloud player
%%
% Add data to the point cloud player.
player = pcplayer([0 1],[0 1],[0 1]);
%%
% Display continuous player figure. Use the |isOpen| method to check if 
% player figure window is open.
  while isOpen(player) 
     ptCloud = pointCloud(rand(1000,3,'single'));
     view(player, ptCloud);           
  end
%%
% Terminate the while-loop by closing |pcplayer| figure window.