Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Searching for python script islands to layers
#16
(01-23-2018, 03:17 PM)Ofnuts Wrote: What Akkana is mentioning is the "pixel region" thing I alluded to in post #9 of this thread. Not sure it helps you here because it is just a raw interface to the layer data, which is *copied* to the Python variable, so if you use Gimp calls to update the layer, you may have to extract it again, or update the array all by yourself, so the final result may not be that much faster.  

PS; Post you test image, so that I can try my fixes Smile

You can reproduce my image very easily, I just made 5 doodles, four in each corner and one in the middle with a brush on a transparent image as you see them in my previous post, just make sure you make objects with holes in them to see what I mean with your script that they (the holes) are counted as objects.
I think the speed bottleneck is the 2 standard for loops and the get_pixel(), I'll have to study that some more
Reply


Messages In This Thread
RE: Searching for python script islands to layers - by mich_lloid - 01-23-2018, 03:47 PM

Forum Jump: