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

8 Downloads

Updated 02 Nov 2018

View License

Cite As

Abhishek Gupta (2020). MATLAB code for Foreground extraction in dynamic Background (https://www.mathworks.com/matlabcentral/fileexchange/67769-matlab-code-for-foreground-extraction-in-dynamic-background), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

RASHMI S NAIR

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

Abhishek Gupta

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

RASHMI S NAIR

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

Community Treasure Hunt

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

Start Hunting!