Function dilate

Source
fn dilate(src: &[u8], w: u32, h: u32, r: f32) -> Vec<u8> 
Expand description

Disc dilation of a coverage mask by radius r (antialiased rim): exact Euclidean distance transform (Felzenszwalb–Huttenlocher, columns then rows), O(px) whatever the radius.