[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: octave-image tests
From: |
Orion Poplawski |
Subject: |
Re: octave-image tests |
Date: |
Fri, 31 Jul 2015 16:03:36 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
>> pkg load image
>> runtests('/usr/share/octave/packages/image-2.4.0');
Processing files in /usr/share/octave/packages/image-2.4.0:
bwmorph.m .............................................. PASS 11/13 FAIL 2
>> test('/usr/share/octave/packages/image-2.4.0/bwmorph.m','verbose');
***** test
in = logical ([0 1 0 0 0
1 0 0 1 0
1 0 1 0 0
1 1 1 1 1
1 1 1 1 1]);
out = logical ([0 1 0 0 0
1 0 0 1 0
1 0 1 0 0
1 1 0 1 1
1 1 1 1 1]);
assert (bwmorph (in, "remove"), out);
out = logical ([0 1 0 0 0
1 0 0 1 0
1 0 1 0 0
1 1 0 1 1
1 1 1 1 1]);
assert (bwmorph (in, "remove", Inf), out);
## tests for spur are failing (matlab incompatible)
out = logical ([0 1 0 0 0
1 0 0 0 0
1 0 1 0 0
1 1 1 1 1
1 1 1 1 1]);
assert (bwmorph (in, "spur"), out);
out = logical ([0 1 0 0 0
1 0 0 0 0
1 0 0 0 0
1 1 1 1 1
1 1 1 1 1]);
assert (bwmorph (in, "spur", Inf), out);
!!!!! test failed
ASSERT errors for: assert (bwmorph (in, "spur"),out)
Location | Observed | Expected | Reason
(1,2) 0 1 Abs err 1 exceeds tol 0
cp2tform.m ............................................. PASS 6/7 FAIL 1
>> test('/usr/share/octave/packages/image-2.4.0/cp2tform.m','verbose');
>>>>> /usr/share/octave/packages/image-2.4.0/cp2tform.m
***** xtest
npt = 100000;
[crw, cap] = coords (npt);
ttype = 'polynomial';
ord = 4;
T = cp2tform (crw, cap, ttype, ord);
crw2 = tforminv (T, cap);
finalerr = norm (crw - crw2)/npt;
assert (finalerr < eps, "norm = %3.2e ( > eps)", finalerr)
!!!!! known failure
norm = 5.31e-16 ( > eps)
PASSES 6 out of 7 tests (1 expected failure)
(hmm, can this get marked XFAIL?)
grayslice.m ............................................ PASS 7/8 FAIL 1
I can't reproduce this failure running it directly.
These all appear to be expected failures:
histeq.m ............................................... PASS 7/22 FAIL
15
imattributes.m .........................................warning: your
version of GraphicsMagick limits images to 16 bits per pixel
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
PASS 4/5 FAIL 1
imresize.m ............................................. PASS 1/5 FAIL 4
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane address@hidden
Boulder, CO 80301 http://www.nwra.com