Setting individual RBG channel

I have three grayscale images with blobs in them, and I want to see if a blob from image 1 overlaps a blob from image 2 and 3 simultaneously.

If I had an image with image 1, 2 and 3 merged in different RGB channels, this would be easy using the blob’s codes. Problem is I can’t find a way to merge single channel images into a three channel one.

Am I missing something or the feature is missing?

You need to find_blobs() in the different images and then check if the returned result blobs are overlapping.

You response prompted me to go look at how the blobs are merged and yes this would actually be an equivalent.

I am kind of disapointed find_blobs() merges using the bounding rectangles and not actual overlap, but I guess the process would be too memory intensive as you would need to keep masks for each blob.

Hi, yes, I developed the algorithm for the M4 so the goal was to use as little RAM as possible to hold the blobs. When I have time (which is never) I want to update the code to capture a bitmask or convex haul.