It is currently Fri Jun 28, 2024 7:05 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Selected areas to separate layers script request (SOLVED)
PostPosted: Thu Sep 08, 2022 12:29 pm  (#21) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3995
Location: Canada
This plug-in in GIMP could be helpful for astronomers or whoever wants to count stars in the sky or portion of sky.
In theory, you could load up an image of stars where the background is generally black.
Threshold it so that you get black & white at the right level that separates the stars from background.
Then turn background into transparent using Color to Alpha.
and use this plug-in.
Might have to change the default maximum number of shapes to a higher number since there could be many many stars in the sky.
might take sometime
But it beats counting manually and probably more accurate too.

_________________
TinT


Top
 Post subject: Re: Selected areas to separate layers script request (SOLVED)
PostPosted: Thu Sep 08, 2022 1:07 pm  (#22) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3995
Location: Canada
That's weird I tried it but it kept failing maybe I don't understand the script very well.
I set the max items to like 10,000 and threshold size to 0 but it's erroring.

_________________
TinT


Top
 Post subject: Re: Selected areas to separate layers script request (SOLVED)
PostPosted: Thu Sep 08, 2022 3:10 pm  (#23) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4751
Another way: make a color selection on the stars (possibly using HSV Value or LCH lightness), `Select > To Path`, and then count the strokes of the path (for which, of course, I have a script). For objects with holes, I also have scripts to remove/split the nested strokes :)

_________________
Image


Top
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Script request

3

No new posts Attachment(s) How to structure single color areas

3

No new posts Attachment(s) How can I separate an into groups?

2

No new posts My shameful n00b request for help

3

No new posts Attachment(s) pm_create_a_water_drop_text.py (Issabella request) updated

17



* Login  



Powered by phpBB3 © phpBB Group