Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting one pixel from each blob in a binary image
#10
(10-27-2024, 05:47 PM)Ofnuts Wrote:
(10-27-2024, 02:46 PM)cam92473 Wrote: .... as I am incorporating this script into a larger algorithm (written in Gimp 3 python fu), which currently stands at 2000 lines long!

You know that of course they are libraries for image processing in Python directly, for instance Pillow and openCV, so you could be reinventing the wheel here (plus the core of these libs is actually written in C, so they are quite fast).

Yes, it all began when I was trying to find a way to apply a circular median kernal to my image data. I found out that Gimp's circular median blur was faster than those in Python image processing libraries (even with the high-precision switch turned on), and so I incorporated it into my pipeline. I then began adding more pieces to my python-fu script and turning it into a full-fledged image processing algorithm. I also enjoy getting ideas from the Gimp user interface, on what further transformations I can incorporate into my algorithm, so in that sense it has been very helpful (although trying to code in Gimp 3.0 has been challenging at times, especially given how buggy it can be).
Reply


Messages In This Thread
RE: Selecting one pixel from each blob in a binary image - by cam92473 - 10-27-2024, 09:39 PM

Forum Jump: