www.pudn.com > database.zip > rahul_imageaq.m, change:2012-11-06,size:343b


clear all; 
clc; 
close all; 
 
%YUY2_160x120,YUY2_176x144,YUY2_320x240,YUY2_352x288,YUY2_640x480 
%YUY2_320x240 
img = videoinput('winvideo',2,'YUY2_640x480'); 
set(img,'ReturnedColorSpace','rgb'); 
 
preview(img); 
reply = input('Press Enter When You Are Ready...', 's'); 
if isempty(reply) 
    data=getsnapshot(img); 
    imshow(data) 
end