vcapg; figure(1);set(1,'doublebuffer','on'); while(1) aa=vcapg; bb=edge(aa(:,:,1)); imshow(bb,[]); drawnow; end