File Exchange

image thumbnail

MATLAB code for Foreground extraction in dynamic Background

version 1.0.0.0 (5.52 KB) by Abhishek Gupta
This code extract the foreground object using luminance invariant background subtraction method

9 Downloads

Updated 02 Nov 2018

View License

Comments and Ratings (3)

can you provide a sample video with which you have worked? so that i can try with my input video.

This one is due to empty STATS matrix. It might arise due to improper kalman filter parameters for your input video.

Index exceeds matrix dimensions.

Error in extract1 (line 61)
BB0=STATS(1).BoundingBox;

Error in kalmanim (line 29)
[cc,SI(:,:,i+1),BG(:,:,i+1)] = extract1(Imwork,i,Z,frame(:,:,:,i),ctrl,SI(:,:,i),BG(:,:,i));

Error in main (line 83)
[tomy]=kalmanim(grayframe,nframes,frame,ctrl);

can you help me how to resolve this error

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux