Background subtraction for image

Hi. I use the im2bw method to do background subtraction but it said index exceeds matrix dimensions. Can somebody please help me with the background subtraction after the webcam captured an image? Here is the following code. Thank you.
start(vid);
pause(6);
trigger(vid);
img = getsnapshot(vid);
stoppreview(vid);
image_resize = imresize(img, [2448 2448]);
imshow(image_resize);

답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2017년 2월 10일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by