I'd like an automatic method to clean images. I've been looking at the GIMP, and its command line (cli) interface, in scheme / lisp. It looks very promising, but I'm a complete novice, so I'd be grateful for advice.
I'm, essentially, wanting to remove all man-made artefacts from a large number of photos - which is why I need to automate it, it's easy enough with just the one.
I'd like to remove anything with a hard-edge (square, rectangle, or part of one), or with a smooth curve (circle, ellipse, or part of one), but not remove naturally curved things, like leaves, or fronds.
I've attached a before and after photo. In a perfect world, I'd like a script that takes the image on the left, and leaves the image on the right.
Any suggestions of the best way to go?
It'd be nice if the method could be one that can use a GPU.
Here's a representative image. In this, I'd be wanting to exclude the straight-edged areas on the top right, and the straight-edged white blocks on the top left. What I'd be not wanting to exclude, but would actually be looking for (a separate problem) would be the white mass that's just to the bottom-right of the centre of the image. As you can see, it has nothing like a straight-edge or arc about it.