[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51980] [octave forge] (image) Failing unit te
From: |
Rafael Laboissiere |
Subject: |
[Octave-bug-tracker] [bug #51980] [octave forge] (image) Failing unit tests for edge |
Date: |
Sun, 10 Sep 2017 11:06:42 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?51980>
Summary: [octave forge] (image) Failing unit tests for edge
Project: GNU Octave
Submitted by: rlaboiss
Submitted on: Sun 10 Sep 2017 03:06:41 PM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: other
Operating System: Any
_______________________________________________________
Details:
The two last unit tests for function edge in the image package are failing.
The test log is below.
***** test
in_8 = fspecial ("gaussian", [8 8], 2);
in_8 /= in_8(4,4);
in_8_uint8 = im2uint8 (in_8);
## this is the result from Matlab's old canny method (before 2011a)
out_8_old = logical ([
0 0 0 0 0 0 0 0
0 0 0 1 1 0 0 0
0 0 1 0 0 1 0 0
0 1 0 0 0 0 1 0
0 1 0 0 0 0 1 0
0 0 1 0 0 1 0 0
0 0 0 1 1 0 0 0
0 0 0 0 0 0 0 0]);
out_8 = logical ([
0 0 0 0 0 0 0 0
0 1 1 1 1 1 0 0
0 1 0 0 0 1 0 0
0 1 0 0 0 1 0 0
0 1 0 0 0 1 0 0
0 1 1 1 1 1 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0]);
out_thresh = [0.34375 0.859375];
[obs_edge, obs_thresh] = edge (in_8, "Canny");
assert (obs_edge, out_8)
assert (obs_thresh, out_thresh)
[obs_edge_givethresh, obs_thresh_givethresh] ...
= edge (in_8, "Canny", out_thresh);
assert (obs_edge_givethresh, out_8)
assert (obs_thresh_givethresh, out_thresh)
[obs_edge_uint8, obs_thresh_uint8] = edge (in_8_uint8, "Canny");
assert (obs_edge_uint8, out_8)
assert (obs_thresh_uint8, out_thresh)
!!!!! test failed
ASSERT errors for: assert (obs_thresh,out_thresh)
Location | Observed | Expected | Reason
(1) 0.27112 0.34375 Abs err 0.072632 exceeds tol 0
(2) 0.67779 0.85938 Abs err 0.18158 exceeds tol 0
***** test
in_9 = fspecial ("gaussian", [9 9], 2);
in_9 /= in_9(5,5);
## this is the result from Matlab's old canny method (before 2011a)
out_9_old = logical ([
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 1 1 1 0 0 0
0 0 1 0 0 0 1 0 0
0 0 1 0 0 0 1 0 0
0 0 1 0 0 0 1 0 0
0 0 0 1 1 1 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0]);
out_9 = logical ([
0 0 0 0 0 0 0 0 0
0 0 1 1 1 1 0 0 0
0 1 1 0 0 1 1 0 0
0 1 0 0 0 0 1 0 0
0 1 0 0 0 0 1 0 0
0 1 1 0 0 1 1 0 0
0 0 1 1 1 1 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0]);
out_thresh = [0.35 0.875];
[obs_edge, obs_thresh] = edge (in_9, "Canny");
assert (obs_edge, out_9)
assert (obs_thresh, out_thresh)
[obs_edge_givethresh, obs_thresh_givethresh] ...
= edge (in_9, "Canny", out_thresh);
assert (obs_edge_givethresh, out_9)
assert (obs_thresh_givethresh, out_thresh)
!!!!! test failed
ASSERT errors for: assert (obs_thresh,out_thresh)
Location | Observed | Expected | Reason
(1) 0.261 0.35 Abs err 0.089001 exceeds tol 0
(2) 0.6525 0.875 Abs err 0.2225 exceeds tol 0
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51980>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51980] [octave forge] (image) Failing unit tests for edge,
Rafael Laboissiere <=