Hi, IOhannes,
There is a tiny bug to be fixed in pix_multiblob; when it tests for the neighbors of a given pixel (double for loop), it should test whether x < image.xsize and not <= here. Same for y.
I would like to take the opportunity to suggest to drop usage of clampFunc in the pixel access and set functions ImageStruct. That would make Gem faster as a whole. perhaps use a #ifndef NDEBUG..#endif type of thing.
Best,