Ya thanks dude. It worked.. :)
Now If need to change the color of the detected white objects into grey color of some other rgb colors format, what should i do???.
Are there any possibilities to do such type of processing. ???
one more help dude... My webcam's still on even if i finish running ur code also. so i had to close matlab completely and then again start it fresh...
So is der any command or code to stop this process alone without closing matlab completely..
Thank U For ur reply dude... And Actually, I've got imaq tool box. I used this tool and then only set the video input command to YUY2_640x480 resolution.
But Computer Vision System Toolbox is missing in my version. Is it possible to download that tool box alone or should i change the version for using it??
i am using matlabR2012a and i am geting the following error message
Error: File: test1.m Line: 27 Column: 14
The expression to the left of the equals sign is not a valid target for an
this corrosponds to line in the code after wile loop begins i.e
while(nFrame < 500)
rgbimage = step(vidDevice); <<<<<<<<<<<<<<<<<<<<<erroe occured here<<<<<<<<<<<
rgbFrame = flipdim(rgbimage,2);
diffFrame = imsubtract(rgbFrame(:,:,1),
iam using matlab 2011a and iam getting the following error msg when i
use ur code.
??? Error using ==> step at 81 (i.e, error(nargchk(2,6,ni)); in step.m file)
Not enough input arguments.
Error in ==> RedObjectDetection at 39
rgbFrame = step(vidDevice); % Acquire single frame