More explanations about Anthony's background removal script

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
adil@alfasoft.ro
Posts: 24
Joined: 2012-01-10T05:19:23-07:00
Authentication code: 8675308

More explanations about Anthony's background removal script

Post by adil@alfasoft.ro »

At http://www.imagemagick.org/Usage/scripts/bg_removal Anthony wrote an script for background removal. There is a more deep explanation about all arguments in this script? Thank you.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: More explanations about Anthony's background removal scr

Post by anthony »

The arguments are basically as discussed in the IM Examples that spawned it
Recovering Semi-Transparent Edges
http://www.imagemagick.org/Usage/masking/#semi-trans

It is an attempt to 'recover' semi-transparent pixels, of a foreground object with a known edge color, and a known background image.

Typing no or incorrect arguments to bg_removal script prints a summary of what it does and the argument meanings.

The next section, which was added much later,
Background Removal using Two Backgrounds
http://www.imagemagick.org/Usage/maskin ... background
goes into the actual problem. Namely.. you need two sources of information to recover the two bits of information that is missing along edges... final foreground color and its transparency.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply