changeset 449:0bc627a2b5db

fixed test for non-symmetric SE
author carandraug
date Wed, 13 Apr 2011 22:40:10 +0000
parents da828348aa6e
children 43974138fa93
files inst/dilate.m
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/inst/dilate.m
+++ b/inst/dilate.m
@@ -83,8 +83,7 @@
 
 
 
-%!assert(dilate(eye(3),[1])==eye(3));	# using [1] as a mask returns the same value
-%!assert(dilate(eye(3),[1,0,0])==[[0;0],eye(2);0,0,0]);
+%!assert(dilate(eye(3),[1])==eye(3));                     # using [1] as a mask returns the same value
+%!assert(dilate(eye(3),[1,0,0])==[0,0,0;1,0,0;0,1,0]);    # check if it works with non-symmetric SE
 %!assert(dilate(eye(3),[1,0,0,0])==[[0;0],eye(2);0,0,0]); # test if center is correctly calculated on even masks
 
-