10-23-2024, 08:28 PM
Can't tell for Gimp3, but for Gimp 2.10 I would do something like this:
- Select by color the white: pdb.gimp_image_select_color()
- Obtain a path from the selection pdb.plug_in_sel2path()
- This gives you a path where each stroke is an envelope for each identified white blob
- You can then use the coordinates of the anchors to compute an approximate centroid and round that value to get the coordinates of a pixel in the blob.