Retain unchanged parts of an image

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
Post Reply
keir
Posts: 1
Joined: 2017-08-10T18:43:27-07:00
Authentication code: 1151

Retain unchanged parts of an image

Post by keir »

I have a series of images of an object taken on a tripod. People kept moving in and out of the pictures. I would like to take this time series set of pictures and remove the differences.

The command "convert -average" almost does this but leaves "ghosts" of the objects that move in an out of the photo.

How can I preserve those parts of the photo that are constant, removing the changed parts
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Retain unchanged parts of an image

Post by fmw42 »

You could use compare to find the frame-to-frame difference or -compose difference. Then make those parts transparent and possibly fill the holes.

See
http://www.imagemagick.org/script/compare.php
http://www.imagemagick.org/Usage/compare/
http://www.imagemagick.org/Usage/compose/
http://im.snibgo.com
Post Reply