Fix incorrect erosion test.

Fortunately, it still passes.
Signed-off-by: Jean-Yves Tinevez <jeanyves.tinevez@gmail.com>
DRY in Dilation.

Signed-off-by: Jean-Yves Tinevez <jeanyves.tinevez@gmail.com>
Fix the chain shape border problem in dilating to new img.

Signed-off-by: Jean-Yves Tinevez <jeanyves.tinevez@gmail.com>
Fix the chain shape border problem in dilating to target img.

Signed-off-by: Jean-Yves Tinevez <jeanyves.tinevez@gmail.com>
Rephrase javadoc of Dilation.

Signed-off-by: Jean-Yves Tinevez <jeanyves.tinevez@gmail.com>
JUnit test for dilation.

Signed-off-by: Jean-Yves Tinevez <jeanyves.tinevez@gmail.com>