Make the region growing tool almost work

Signed-off-by: Jean-Yves Tinevez <jean-yves.tinevez@pasteur.fr>