Coordinate overlap in two labelled images
Sigmund
siggin at gmail.com
Tue Apr 2 13:13:30 EDT 2013
Not sure if I got your point but what about turning your two arrays in in
one 3D array. Using the label function and find_objects on the 3D array
should do what you want.
On Tuesday, April 2, 2013 7:04:07 PM UTC+2, Stuart Mumford wrote:
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20130402/222b35b6/attachment.html>
More information about the scikit-image
mailing list