Subtract background on photo images

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
Post Reply
vigor
Posts: 1
Joined: 2016-08-05T13:40:55-07:00
Authentication code: 1151

Subtract background on photo images

Post by vigor »

I found this post viewtopic.php?f=1&t=15584&start=0
which works wonders for electronically modified images, thank you for that very much.

What i'd like to be able to do is to subtract background on the photo created by a motion detection camera.
Camera is statically mounted and the background expected unchanged most of the time, except when motion is detected.
'say it takes a picture of background only, then another object appears on the next picture,
then i'd like to programmatically cut only the area with that new object.

I understand that these backgrounds will not be binary equivalent since they are taken by a camera, sun moves,
wind blows - it will change slightly. So some deviation should be taken into account when detecting background similarity.
Is that too big of a problem to solve by Imagemagic ? Any leads ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Subtract background on photo images

Post by fmw42 »

jmac698
Posts: 48
Joined: 2013-12-20T01:57:16-07:00
Authentication code: 6789

Re: Subtract background on photo images

Post by jmac698 »

It just so happens I was just reading about this. Try to search "natural image matting". One top solution is called "Spectral Matting". There's a paper and Matlab source code, so this isn't an easy solution, it's for programmers.

I believe such operations are available in high-end video editing programs like After Effects.
Post Reply