(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).