I am using floodfill to remove the background from image (I know the color of the background), and it works well for most cases except when the background is disjoint, for example the Google logo, white color still exists inside the characters (the disjoint white space in the O).
I found that using -transparent works in removing it from the space in the characters as well, is using -transparent a good idea or is there a better way to do this?
Removing simple background from an image
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Removing simple background from an image
-transparent is the only way to do that without having to floodfill each separate white region.
Re: Removing simple background from an image
Are there any side effects to using -transparent? I'm asking because almost every other post I've found uses floodfill.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Removing simple background from an image
Only if you have white regions that you want to remain white.
Re: Removing simple background from an image
Ah cool, thanks!