Image Subtraction using frame history [closed]

asked 2018-10-02 15:12:33 -0600

Andy09 gravatar image

Hello Everyone,

I am trying to use image subtraction for extracting contours from the video. I just need to subtract the average of the first 20 frames for this particular problem. However, I figured out that current algos substract on a rolling image basis.

My current approach is: 1. Adding first 20 frames and then dividing by 20 to get average of the background 2. Substracting the averaged image from frames >20.

Is there any other way ?

Any help would be greatily appreciated ?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-12-02 11:44:05.025879

Comments

trying to reinvent background subtraction ?

berak gravatar imageberak ( 2018-10-03 02:10:25 -0600 )edit

What does that means ? Not trying to invent anything though

Andy09 gravatar imageAndy09 ( 2018-10-03 02:14:35 -0600 )edit

oh apologies, i'm more trying to pull your leg here.

but we do have some backgound subtraction implementations here already. have a look ! maybe you want to refine your question, then.

berak gravatar imageberak ( 2018-10-03 02:17:35 -0600 )edit

cool! Thanks Brother! I had a look at the link in the previous comment. I think what I want to ask is that for the problem that I face is that:

I want my background image to be constant instead of using the image on rolling basis that is using the previous image for current frame.

I am very kind of naive to image analysis so excuse my lingo.

Thanks Andy

Andy09 gravatar imageAndy09 ( 2018-10-03 02:31:37 -0600 )edit

ok, i see. but do you really have a "static" background ? if you have natural lighting, the sun will move, clouds will come & go. someone will move a chair, and it stays like that for the rest of the day.

berak gravatar imageberak ( 2018-10-03 02:55:48 -0600 )edit
1

I do have a static background as the video is slow motion video with 30 fps from the controlled engineering test performed under static lightening conditions.

Andy09 gravatar imageAndy09 ( 2018-10-03 03:12:56 -0600 )edit
sturkmen gravatar imagesturkmen ( 2020-12-02 11:43:51 -0600 )edit