Gimp-Forum.net
Advice on complex background removal? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Advice on complex background removal? (/Thread-Advice-on-complex-background-removal)



Advice on complex background removal? - chekhovana@gmail.com - 08-15-2020

I need to extract red cell tower from this image. What is the most effective way to remove background?


RE: Advice on complex background removal? - Ofnuts - 08-15-2020

Given that it is mostly straight lines, doing a clip selection with the path tool is probably the best solution. Yes, upfront it is obvious that it will take time, but I don't think that any other solution is going to give acceptable results in finite time. Bonus points for the safety ladder againt the grass Smile


RE: Advice on complex background removal? - denzjos - 08-15-2020

Maybe you can select part of the complex by using :
G'Mic-Qt / Repair / Local Similarity Mask
I've used following parameters :
center x 43.30 y 46,92 (you can move the white dot around by using the mouse)
keep 74
reject 88
channels Lightness
Steps 100

part of the job is done :

[attachment=4743]


RE: Advice on complex background removal? - david - 08-15-2020

I think that however you do it will take time. However, a possible suggestion. Use G'MIC Inpaint to remove the tower from a copy of the image and then put that copy into difference mode. From this you can either derive the picture of the mast or make a mask to use on the original.
The reason I suggest this is that masking does not need to be that precise for Inpaint to synthesize the background.
david.


RE: Advice on complex background removal? - rich2005 - 08-15-2020

Quote:Use G'MIC Inpaint to remove the tower .....The reason I suggest this is that masking does not need to be that precise for Inpaint to synthesize the background.

...providing the OSX/MacOS user can find a Gimp / Gmic combination that works.


RE: Advice on complex background removal? - chekhovana@gmail.com - 08-19-2020

(08-15-2020, 04:38 PM)rich2005 Wrote: ...providing the OSX/MacOS user can find a Gimp / Gmic combination that works.

This can be achieved by manually compiling Gimp and Gmic from sources. I've used Macports to compile and install Gimp, and then built Gmic with the help of the following script.