vrijdag 3 september 2010

[Matlab] Isotropic dilation using the distance transform

Interesting article on Matlab’s official blog: take a binary foreground/background image, and compute for every single pixel whether it is within a certain range of a foreground pixel, really fast.

 

http://blogs.mathworks.com/steve/2010/08/16/isotropic-dilation-using-the-distance-transform/

 

I imagine this could have useful applications for Matlab users, even beyond image processing. For instance, it could be used to randomize positions in grouping displays while respecting a certain minimum distance.

 

Maarten

Geen opmerkingen:

Een reactie posten