Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting one pixel from each blob in a binary image
#5
This is a kubuntu 24.04 / Gimp 2.99.19 (appimage) It is the same in Gimp 2.10

As a non-programmer, a hands-on approach Wink

Using layer modes you can "mark" the relevant "blobs" but a selection (by color ) still includes all "blobs"

   

A New-From-Visible gets the "marks" and a Filters -> Generic -> Dilate grows the white "blobs" into the selection. (ctrl-F a zillion times repeats the growth).

   

Obviously very inefficient to use multiple dilates, maybe someone has a good way of growing the "blob" and deciding when the selection(s) are filled.

When it comes to Gimp 3 scripting, I despair. The devs seem intent on making it as difficult as possible for users who might occasionally dabble. This is what I have recently been looking at:
https://testing.docs.gimp.org/2.99/en/gi...orial.html
Seems very long-winded for a "hello world" plugin. The section before that is script-fu, which might be a better bet for Gimp 3 at the moment.
Reply


Messages In This Thread
RE: Selecting one pixel from each blob in a binary image - by rich2005 - 10-25-2024, 08:20 AM

Forum Jump: