It is currently Thu Aug 13, 2026 7:29 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: How to clear the area from the outermost selection?
PostPosted: Mon Apr 02, 2018 3:30 am  (#1) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
Dear all, Thank you for your previous support and help. I am performing an image analysis and the region of interest is the area between the two lines. I was able to remove the inner part by using the invert and cut option. But I am having a hard time removing the portion from the outermost line.

I am quite new to image processing software like GIMP.

Thanks,

Highlander


Attachments:
GIMP.png
GIMP.png [ 1.27 MiB | Viewed 14400 times ]
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: How to clear the area from the outermost selection?
PostPosted: Mon Apr 02, 2018 4:58 am  (#2) 
Offline
GimpChat Member

Joined: Sep 20, 2016
Posts: 293
One option might be the Magnetic Scissors, although the performance of that tool is not optimal.

Another way is selecting the black line with the Fuzzy Select Tool. Convert the selection into a path and then delete all the nodes of the inner path with the Paths Tool ('CTRL + Shift + Click' deletes a node).
Which leaves you with a pretty accurate path, you can use for a selection.

A third way is using G'MIC - Extract foreground.


Attachments:
PathMethod.xcf.gz [1.46 MiB]
Downloaded 507 times


Last edited by Konstantin on Mon Apr 02, 2018 5:04 am, edited 1 time in total.
Top
 Post subject: Re: How to clear the area from the outermost selection?
PostPosted: Mon Apr 02, 2018 5:00 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1464
The Quick and Easy Way.
Do you want to remove the portion between the outermost line and the image edge or frame?

If so I would use the free select tool. Trace around the outermost line again using the left mouse click in a step by step
method, then take your free select line outside the canvas and around it like the screen grab.
Image

After you hit delete.
Image

Removing the entry/exit on the LHS can also be done with Free Select.


Top
 Post subject: Re: How to clear the area from the outermost selection?
PostPosted: Mon Apr 02, 2018 5:03 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 08, 2018
Posts: 101
Location: The Netherlands
Duplicate layer, make everything inside the outer line black, select the black part, invert selection, duplicate bottom layer, remove selected part form that layer by deleting the selection. That layer has now only the inside part. Delete all other layers.

_________________
Image


Top
 Post subject: Re: How to clear the area from the outermost selection?
PostPosted: Mon Apr 02, 2018 5:52 am  (#5) 
Offline
GimpChat Member

Joined: Sep 20, 2016
Posts: 293
Vincent wrote:
Duplicate layer, make everything inside the outer line black, select the black part

instead of painting with a brush we could take advantage of the contrast between the black line and the rest of the image:

duplicate layer
with the Levels Tool, drag the white point slider to the left, until only the black line is visible
then click in the white area with the Fuzzy Select Tool
apply Layermask from (inverted) selection to the original layer
delete helper layer
touch up the layermask with a brush where the Fuzzy Select didnt catch

probably the quickest method so far, i guess


Top
 Post subject: Re: How to clear the area from the outermost selection?
PostPosted: Mon Apr 02, 2018 6:02 am  (#6) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2611
ninja'd by konstantin but some screen shots so

The gmic foreground extract works well for this type of image.

A quicker way

The saving grace for that is the black border. Duplicate the layer, Apply Threshold Colors -> Theshold with the left side slider right down to a value 1 or 2. looks like this:

Image

That will let you fuzzy select outside the cell:

Image

Delete the top layer, leaving the selection in place. Cut, Ctrl-X the selction (or fill with white) :

Image


Top
 Post subject: Re: How to clear the area from the outermost selection?
PostPosted: Mon Apr 02, 2018 8:30 am  (#7) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
Konstantin wrote:
One option might be the Magnetic Scissors, although the performance of that tool is not optimal.

Another way is selecting the black line with the Fuzzy Select Tool. Convert the selection into a path and then delete all the nodes of the inner path with the Paths Tool ('CTRL + Shift + Click' deletes a node).
Which leaves you with a pretty accurate path, you can use for a selection.

A third way is using G'MIC - Extract foreground.


Hi there Konstantin, thank you very much! I really appreciate your help!


Top
 Post subject: Re: How to clear the area from the outermost selection?
PostPosted: Mon Apr 02, 2018 8:31 am  (#8) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
Tas_mania wrote:
The Quick and Easy Way.
Do you want to remove the portion between the outermost line and the image edge or frame?

If so I would use the free select tool. Trace around the outermost line again using the left mouse click in a step by step
method, then take your free select line outside the canvas and around it like the screen grab.
[ Image ]

After you hit delete.
[ Image ]

Removing the entry/exit on the LHS can also be done with Free Select.


Hello Tas_mania, I appreciate your help, I tried your method and it works!! Great!!


Top
 Post subject: Re: How to clear the area from the outermost selection?
PostPosted: Mon Apr 02, 2018 8:32 am  (#9) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
Vincent wrote:
Duplicate layer, make everything inside the outer line black, select the black part, invert selection, duplicate bottom layer, remove selected part form that layer by deleting the selection. That layer has now only the inside part. Delete all other layers.


Hi Vincent, thanks a bunch! Appreciate your help.


Top
 Post subject: Re: How to clear the area from the outermost selection?
PostPosted: Mon Apr 02, 2018 8:34 am  (#10) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
rich2005 wrote:
ninja'd by konstantin but some screen shots so

The gmic foreground extract works well for this type of image.

A quicker way

The saving grace for that is the black border. Duplicate the layer, Apply Threshold Colors -> Theshold with the left side slider right down to a value 1 or 2. looks like this:

[ Image ]

That will let you fuzzy select outside the cell:

[ Image ]

Delete the top layer, leaving the selection in place. Cut, Ctrl-X the selction (or fill with white) :

[ Image ]


Hi Rich2005, thank you very much for all your help. I really appreciate your effort!! I tried your method and it worked!


Top
 Post subject: Re: How to clear the area from the outermost selection?
PostPosted: Wed Apr 04, 2018 3:36 am  (#11) 
Offline
GimpChat Member

Joined: Sep 20, 2016
Posts: 293
Konstantin wrote:
Another way is selecting the black line with the Fuzzy Select Tool. Convert the selection into a path and then delete all the nodes of the inner path with the Paths Tool ('CTRL + Shift + Click' deletes a node).
Which leaves you with a pretty accurate path, you can use for a selection.

just figured out there is an even quicker way, but you need to have ofnuts Paths tools installed:
01) select black line with fuzzy select tool
02) convert selection into path, deselect
03) in the paths tab, 'break path apart' from the right click menu, now you have two new seperate paths
04) activate selection from outer path
05) apply layermask from selection, then deselect

get ofn-path-edits here:
https://sourceforge.net/projects/gimp-p ... s/scripts/


Top
 Post subject: Re: How to clear the area from the outermost selection?
PostPosted: Sun Sep 02, 2018 4:42 pm  (#12) 
Offline
New Member

Joined: Sep 02, 2018
Posts: 1
Late in the ball game, but zoom in, use Fuzzy Select tool to select outer black line. The selection will be two dashed lines around the inside and outside of the black line. Use Select/Remove Holes. That selects the whole inside of the outer black line. Invert selection and fill with white.


Top
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group