Personally, I yearn for a command line image editor. ImageMagick is nice, but it can't do everything. Once you've gone cli, it's hard to go back to gui applications, since they're so inefficient.
Please explain to me how you imagine creating a mask around a human so that you can "extract" him from the background in the command line.