function [vid,dev_PS3Eye,dev_Quickcam,dev_other]=InitCam10(PS3res,timeoutfreeze,timeoutclose) %PS3res=640 or 320: PS£Eye (lateral) resolution mode %% INITIALIZE % Detect camera devices [dev_PS3Eye,dev_Quickcam,dev_other] = CamAutodetect10; % Create an image acquisition object vid = CamAutoassign10(dev_PS3Eye,PS3res,dev_Quickcam); if (timeoutfreeze>0)||(timeoutclose>0) % Preview the assigned flux QuickPreview10(vid,timeoutfreeze,timeoutclose) end