It is currently Sun Aug 16, 2026 3:24 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: How to invert and remove this part?
PostPosted: Tue Jan 09, 2018 11:13 pm  (#1) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
I am trying to perform an image analysis. I made the stroke selection and selected the required area. After this I made invert selection of the region outside the selection. But I am clueless of how I remove the inner region (area inside the stroke selection).

I appreciate any help from you guys.

Best
Highlander


Attachments:
how to invert this image.jpg
how to invert this image.jpg [ 115.32 KiB | Viewed 10600 times ]
MT 40X projection copy.jpg
MT 40X projection copy.jpg [ 294.53 KiB | Viewed 10600 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 invert and remove this part?
PostPosted: Tue Jan 09, 2018 11:31 pm  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14156
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
I first duplicated the layer and ran,
Color> Desaturate> Louminosicty.
Image

The I applied a Color Curve.
Image

Using the Fuzzy Select Tool.
I selected the inner portion of this image.
Image

Then switched back to the bottom layer,
with the selection still active and cleared the pixels from the inner portion of the image.
Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: How to invert and remove this part?
PostPosted: Wed Jan 10, 2018 1:16 am  (#3) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
Dear Wallace,

Greetings from Japan. Thank you very much for the help!! This method definitely works for my analysis. I have another question. Is it possible to remove the stroke selection (the lines I mean). Since I am trying to perform image analysis based on the color of the stain, my next step would be to remove the lines and then perform image analysis using ImageJ software.

Thank you again for the kind help.

Highlander


Top
 Post subject: Re: How to invert and remove this part?
PostPosted: Wed Jan 10, 2018 1:16 am  (#4) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
Wallace wrote:
I first duplicated the layer and ran,
Color> Desaturate> Louminosicty.
[ Image ]

The I applied a Color Curve.
[ Image ]

Using the Fuzzy Select Tool.
I selected the inner portion of this image.
[ Image ]

Then switched back to the bottom layer,
with the selection still active and cleared the pixels from the inner portion of the image.
[ Image ]



Dear Wallace,

Greetings from Japan. Thank you very much for the help!! This method definitely works for my analysis. I have another question. Is it possible to remove the stroke selection (the lines I mean). Since I am trying to perform image analysis based on the color of the stain, my next step would be to remove the lines and then perform image analysis using ImageJ software.

Thank you again for the kind help.

Highlander


Top
 Post subject: Re: How to invert and remove this part?
PostPosted: Wed Jan 10, 2018 1:37 am  (#5) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14156
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Highlander wrote:
Wallace wrote:
I first duplicated the layer and ran,
Color> Desaturate> Louminosicty.
[ Image ]

The I applied a Color Curve.
[ Image ]

Using the Fuzzy Select Tool.
I selected the inner portion of this image.
[ Image ]

Then switched back to the bottom layer,
with the selection still active and cleared the pixels from the inner portion of the image.
[ Image ]



Dear Wallace,

Greetings from Japan. Thank you very much for the help!! This method definitely works for my analysis. I have another question. Is it possible to remove the stroke selection (the lines I mean). Since I am trying to perform image analysis based on the color of the stain, my next step would be to remove the lines and then perform image analysis using ImageJ software.

Thank you again for the kind help.

Highlander

Perhaps this could be done, but due to it's size.
It would be difficult to accomplish using the image you provided.

I might be wrong and if so,
I'm sure someone may come forward and show us how this might be done.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: How to invert and remove this part?
PostPosted: Wed Jan 10, 2018 8:56 am  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8457
Location: On the other side of your screen
I dont use them, (just had a quick look though). Instead of stroking a selection - why not save it to a channel? You can still see your selection without having the stroke there.

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.4 and GMIC-Qt 4.0.2 OS :- Windows 10 Home 64


Top
 Post subject: Re: How to invert and remove this part?
PostPosted: Wed Jan 10, 2018 9:16 am  (#7) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
Wallace wrote:
Highlander wrote:
Wallace wrote:
I first duplicated the layer and ran,
Color> Desaturate> Louminosicty.
[ Image ]

The I applied a Color Curve.
[ Image ]

Using the Fuzzy Select Tool.
I selected the inner portion of this image.
[ Image ]

Then switched back to the bottom layer,
with the selection still active and cleared the pixels from the inner portion of the image.
[ Image ]



Dear Wallace,

Greetings from Japan. Thank you very much for the help!! This method definitely works for my analysis. I have another question. Is it possible to remove the stroke selection (the lines I mean). Since I am trying to perform image analysis based on the color of the stain, my next step would be to remove the lines and then perform image analysis using ImageJ software.

Thank you again for the kind help.

Highlander

Perhaps this could be done, but due to it's size.
It would be difficult to accomplish using the image you provided.

I might be wrong and if so,
I'm sure someone may come forward and show us how this might be done.


Thanks Wallace. I tried to do the steps that you did, but was not able to do the last step (switching back to the bottom layer, with the selection still active and cleared the pixels from the inner portion of the image).

I am sorry I am pretty new to image editing and just know a thing or two. How do I switch back to the layer and clear the pixels.

Regards,

Highlander


Top
 Post subject: Re: How to invert and remove this part?
PostPosted: Wed Jan 10, 2018 9:18 am  (#8) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
sallyanne wrote:
I dont use them, (just had a quick look though). Instead of stroking a selection - why not save it to a channel? You can still see your selection without having the stroke there.


Hi Sallyanne, thank you for the suggestion. I have no clue how to do that, since I am pretty new to GIMP. I would highly appreciate if you could help me how I can do that.

Regards,

Highlander


Top
 Post subject: Re: How to invert and remove this part?
PostPosted: Wed Jan 10, 2018 10:25 am  (#9) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14156
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Highlander wrote:

Thanks Wallace. I tried to do the steps that you did, but was not able to do the last step (switching back to the bottom layer, with the selection still active and cleared the pixels from the inner portion of the image).

I am sorry I am pretty new to image editing and just know a thing or two. How do I switch back to the layer and clear the pixels.

Regards,

Highlander


Turn the visibility of the top layer off.
By left-clicking on the tiny eye to the left of it's layer.
This will make the bottom layer visible in the larger main canvas.
Image

Make the bottom layer the active visible layer.
By left-clicking on this layer,
within the layers dialog.
With the bottom layer now the active visible layer.
You can clear the inner portion of this layer.
Using the selection that was made from the top layer.
Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: How to invert and remove this part?
PostPosted: Wed Jan 10, 2018 11:41 am  (#10) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8457
Location: On the other side of your screen
Make your selection over your image. Then go to selection (up in the top menu), go down to 'save to channel'.
Then continue on as Wallace has advised then by turning the channel eye on and off you can see where your selection was (it is turned into a selection mask).
As I said I dont use channels myself and maybe someone who knows them can explain better.
I had a look what could be done because of your question :) and I think it would save you stroking your selection esp if you want to get rid of it later.

I'm off to bed now..late here...erm early morning, I hope you get your problem gets solved.

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.4 and GMIC-Qt 4.0.2 OS :- Windows 10 Home 64


Top
 Post subject: Re: How to invert and remove this part?
PostPosted: Mon Jan 15, 2018 9:52 am  (#11) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
Wallace wrote:
Highlander wrote:

Thanks Wallace. I tried to do the steps that you did, but was not able to do the last step (switching back to the bottom layer, with the selection still active and cleared the pixels from the inner portion of the image).

I am sorry I am pretty new to image editing and just know a thing or two. How do I switch back to the layer and clear the pixels.

Regards,

Highlander


Turn the visibility of the top layer off.
By left-clicking on the tiny eye to the left of it's layer.
This will make the bottom layer visible in the larger main canvas.
[ Image ]

Make the bottom layer the active visible layer.
By left-clicking on this layer,
within the layers dialog.
With the bottom layer now the active visible layer.
You can clear the inner portion of this layer.
Using the selection that was made from the top layer.
[ Image ]


Hi there, sorry for the late reply. I really appreciate your help!! Thank you for helping me out.

Best regards,

Highlander


Top
 Post subject: Re: How to invert and remove this part?
PostPosted: Mon Jan 15, 2018 9:53 am  (#12) 
Offline
GimpChat Member

Joined: Jan 09, 2018
Posts: 17
sallyanne wrote:
Make your selection over your image. Then go to selection (up in the top menu), go down to 'save to channel'.
Then continue on as Wallace has advised then by turning the channel eye on and off you can see where your selection was (it is turned into a selection mask).
As I said I dont use channels myself and maybe someone who knows them can explain better.
I had a look what could be done because of your question :) and I think it would save you stroking your selection esp if you want to get rid of it later.

I'm off to bed now..late here...erm early morning, I hope you get your problem gets solved.


Hi Sallyanne, sorry for the late response, I really appreciate your help. I will try using the method you have suggested.

Best regards,

Highlander


Top
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group