Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

FloodFill / distanceTransform

lital
Beginner
554 Views
Hi,
I want to fill image holes, using a distance transform of another image.
Is there a way - to get aclosest pixels map(i.e. not only the distance map , but also the closest pixel'slocation/adress)or to flood fill an image using another image's non zero pixels and theirclosest pixels??
Thank you..
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
554 Views

Hi,

This functionality (distance transform with the labels of the nearest points) has been added to the very latest CVS version of OpenCV

that can be retrieved from SourceForge:

http://sourceforge.net/cvs/?group_id=22870

Actually, it is not exactly what it requested, because all pixels in a connected component have the same labels, so the labels of the nearest connected components, not the nearest pixels, are returned. Though, this feature can be easily added, if need.

Regards,
Vladimir

0 Kudos
Reply