Removing background in image

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
nantha94
Posts: 5
Joined: 2018-12-23T20:00:41-07:00
Authentication code: 1152

Removing background in image

Post by nantha94 » 2018-12-23T20:23:48-07:00

Hi,

I'm new of this library. i want remove background as per the input image.
Image

nantha94
Posts: 5
Joined: 2018-12-23T20:00:41-07:00
Authentication code: 1152

Re: Removing background in image

Post by nantha94 » 2018-12-23T20:29:57-07:00

i want only human image without background.

snibgo
Posts: 12141
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Removing background in image

Post by snibgo » 2018-12-23T22:37:46-07:00

I would do it by hand, with Gimp.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 25539
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Removing background in image

Post by fmw42 » 2018-12-24T11:44:14-07:00


nantha94
Posts: 5
Joined: 2018-12-23T20:00:41-07:00
Authentication code: 1152

Re: Removing background in image

Post by nantha94 » 2018-12-25T19:26:06-07:00

i''m using python to removing background using this tool. but i can't remove background. my project based on the user image.

nantha94
Posts: 5
Joined: 2018-12-23T20:00:41-07:00
Authentication code: 1152

Re: Removing background in image

Post by nantha94 » 2018-12-25T19:58:16-07:00

snibgo wrote:
2018-12-23T22:37:46-07:00
I would do it by hand, with Gimp.
No, i want to remove command. can you suggest any idea

nantha94
Posts: 5
Joined: 2018-12-23T20:00:41-07:00
Authentication code: 1152

Re: Removing background in image

Post by nantha94 » 2018-12-25T19:58:59-07:00

nantha94 wrote:
2018-12-25T19:58:16-07:00
snibgo wrote:
2018-12-23T22:37:46-07:00
I would do it by hand, with Gimp.
No, i want to remove background using command. can you suggest any idea

User avatar
fmw42
Posts: 25539
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Removing background in image

Post by fmw42 » 2018-12-26T10:31:42-07:00


snibgo
Posts: 12141
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Removing background in image

Post by snibgo » 2018-12-26T11:27:06-07:00

GrabCut might succeed without a user-supplied mask, but I doubt it for this image. The top half is fairly easy, but not the bottom half, especially around the left foot.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 25539
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Removing background in image

Post by fmw42 » 2018-12-26T11:55:35-07:00

Grabcut and Clipping magick may help, but I suspect you will need to manually edit it. Clipping Magick allows you to quickly draw around the object and have it remove the background. But for complex backgrounds you need to draw it multiple places to get all the background remove. But you still may have to manually edit it with very complex backgrounds. Photoshop and Gimp have elastic outline tools that may help.

Post Reply