Mercurial > forge
changeset 11666:a63a0ead64e3 octave-forge
strel: fix height tests (specify precision)
author | carandraug |
---|---|
date | Sun, 28 Apr 2013 05:38:56 +0000 |
parents | 7ffd3162121b |
children | 2c21253d3341 |
files | main/image/inst/@strel/strel.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/main/image/inst/@strel/strel.m Sun Apr 28 05:38:17 2013 +0000 +++ b/main/image/inst/@strel/strel.m Sun Apr 28 05:38:56 2013 +0000 @@ -489,9 +489,9 @@ %! 0.00000 0.74536 0.94281 1.00000 0.94281 0.74536 0.00000 %! 0.00000 0.66667 0.88192 0.94281 0.88192 0.66667 0.00000 %! 0.00000 0.33333 0.66667 0.74536 0.66667 0.33333 0.00000 -%! 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000] +%! 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000]; %!assert (getnhood (strel ("ball", 3, 1)), logical (shape)); -%!assert (getheight (strel ("ball", 3, 1)), height); +%!assert (getheight (strel ("ball", 3, 1)), height, 0.0001); %! shape = [0 0 0 1 0 0 0 %! 0 0 1 1 1 0 0 %! 0 1 1 1 1 1 0