Hello,

I have a problem I was hoping someone here would be able to help me with!

I am using your (amazingly fast) label image routines and regionprops to extract the coordinates of the regions in two images. I need to filter these objects out if they do not overlap in both the images, then renumber all the remaining regions. At the moment I am doing something unspeakable with nested loops and sets which is pretty damn slow; I was hoping someone here would have a really clever idea on how to solve this. Failing that does anyone know how I can find the number of coordinates (output from regionprops) that overlap in two numpy arrays?

Thanks a lot
Stuart