clear;close all;
im1=imread('stab1.jpg');
im2=imread('stab2.jpg');
bwim1=adaptivethreshold(im1,15,0.08,0);
bwim2=adaptivethreshold(im2,15,0.03,0);
subplot(3,2,1);
imshow(im1);title('First Frame');
subplot(3,2,2);
imshow(bwim1);title('Adaptive Threshold First Frame');
subplot(3,2,3);
imshow(im2);title('Second Frame');
subplot(3,2,4);
imshow(bwim2);title('Adaptive threshold second Frame');
subt = imabsdiff(im1,im2);
subplot(3,2,5);
imshow(subt);title('subtracted bg');
subO = imabsdiff(bwim1,bwim2);
subplot(3,2,6);
imshow(subO);title('subtracted bg Threshold');
Friday, June 4, 2010
frame subtraction using adaptive thresholding
code:
Subscribe to:
Post Comments (Atom)
thank to aresh, he did a really excellent work to help the student those who found trouble during their project study
ReplyDeletesir i wnt a help regarding to matlab .i have to create non-tensor product bivariate orthogonal wavelet filter banks.please help me
ReplyDeletethere is no function definition in the above given program for adaptive thresholding.In my system there is a error known as undefined function for adaptive thresholding.
ReplyDeletewhich modification is required if I want to improve the results more? I want to subtract the background from original image to get the object very clear.
ReplyDelete