Gimp-Forum.net
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: Background removal (/Thread-Background-removal--8875)



Background removal - rinaldop - 03-15-2024

Hello yet again,

I have learned a LOT by experimenting and watching tutorials but my next problem maybe impossible to solve with an automated tool. I am trying to remove the background of the following 2 images leaving only the dials and the numbers on the outer ring and also remove the center hole.

I tried an auto background tool, change color by selection, changing chroma, but too much gets removed. Unless the experts here can help my last option is to use the free selection tool to remove the background by hand.

Thanks!

[attachment=11467]

[attachment=11468]


RE: Background removal - rinaldop - 03-16-2024

Here is what I was able to do with select free and select ellipse

[attachment=11469]

[attachment=11470]


RE: Background removal - rinaldop - 03-16-2024

More work with selection ellipse and that should do it!

[attachment=11471]


RE: Background removal - PixLab - 03-16-2024

(03-15-2024, 09:36 PM)rinaldop Wrote: Hello yet again,
I am trying to remove the background of the following 2 images leaving only the dials and the numbers on the outer ring and also remove the center hole.

The first one: No a "simple filter solution", though, and certainly not the best solution

Duplicate the original, on the duplicated go to Colors ➤ Desaturate ➤ Mono Mixer..., lower the green channel

[attachment=11472]

Then go to the Channel dialog and drag any channel down (don't forget to select the channel back, because the one you have dragged down will be un-selected ➤ Select it back)

[attachment=11473]

Go back to the layers' dialog select the top layer and add a mask with those setting (mask from channel)

[attachment=11474]

Then Select the original layer below, Colors ➤ Levels... move those 2 tiny sliders (triangle) until the clouds disappear

[attachment=11475]

Then select the Mask (click on it) and straighten the blacks at the bottom of the Curves Colors ➤ Curves to mostly give back the red color

[attachment=11476]

Not perfect but from there you should be able to work on the "Visible"


RE: Background removal - PixLab - 03-16-2024

The second one: This one is even worse, the BMW is very-very visible, and has an intrinsically background on the dials, you will have to use a brush to fine tune... at one point...

Anyway, let's give it a try, Duplicate, on the top one layer Colors ➤ Desaturate ➤ Desaturate in Value (HSV) mode

[attachment=11478]

Then Colors ➤ Levels... and put the layer in "Pin Light" mode

[attachment=11479]

Then Layer ➤ New From Visible, a new layer appear called Visible, make a vertical curve > Colors ➤ Curves... with the top right node (the whites)

[attachment=11480]

Then put that layer in the middle in Addition Mode

[attachment=11481]

Then you can take a smooth edge brush to paint black on the inner edges

[attachment=11482]

In the end, I think it's better to draw those dials from scratch, with the Symmetry Painting tool it would be a piece of cake to make the dial Wink


RE: Background removal - rich2005 - 03-16-2024

@rinaldop  I might be on the wrong track here but are all the images in as good alignment as the two you posted ?

If they are I might try:
Load the images as layers
Make the selection then invert the selection
Use the attached Multiple-Layer-Actions.scm to cut 
Trim to size Image -> Crop to content.

Plenty scripts/ plugins to export the layers to individual png files
As a note, The background(s), not wonderful, there are (ghost) image(s) there. Don't know what to do about that Wink

anyway as an animation: https://i.imgur.com/JUHTpny.mp4