from
Optical flow based robot obstacle avoidance with Matlab
by Alexander Grau
Navigate a virtual robot in a virtual environment to avoid obstacles by using optical flow field.
|
| fcapture(f) |
function x = fcapture(f)
%CAPTURE Capture a Virtual Reality figure into a RGB image.
% CAPTURE(F) captures a figure into a TrueColor RGB image that can be
% displayed by IMAGE.
%
% See also IMAGE.
% Copyright 1998-2006 HUMUSOFT s.r.o. and The MathWorks, Inc.
% $Revision: 1.2.4.2 $ $Date: 2006/12/13 00:16:59 $ $Author: batserve $
%%set(f,'WindowCommand','raise');
handle = get(f, 'handle');
xraw = vrsfunc('CaptureFigure', handle);
x = permute(xraw(:,:,end:-1:1), [3 2 1]);
|
|
Contact us at files@mathworks.com