More explanations about Anthony's background removal script
-
- Posts: 24
- Joined: 2012-01-10T05:19:23-07:00
- Authentication code: 8675308
More explanations about Anthony's background removal script
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.
- 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
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.
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/
https://imagemagick.org/Usage/