[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51719] image: watershed unit test failure
From: |
Rafael Laboissiere |
Subject: |
[Octave-bug-tracker] [bug #51719] image: watershed unit test failure |
Date: |
Thu, 10 Aug 2017 03:12:56 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?51719>
Summary: image: watershed unit test failure
Project: GNU Octave
Submitted by: rlaboiss
Submitted on: Thu 10 Aug 2017 07:12:54 AM 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: GNU/Linux
_______________________________________________________
Details:
Using Octave 4.2.1 and package image 2.6.1, the following unit test in
watershed:
## The following test is required for Matlab compatibility. There must be
## something specific about their implementation that causes it to return
## this value. Even when solving it on paper, we get different results.
%!test
%! im = [
%! 2 3 30 2
%! 3 30 3 30
%! 255 31 30 4
%! 2 255 31 30
%! 1 2 255 5];
%!
%! labeled8 = [
%! 1 1 0 3
%! 1 1 0 3
%! 0 0 0 0
%! 2 2 0 4
%! 2 2 0 4];
%! assert (watershed (im), labeled8);
fails with the following message:
error: ASSERT errors for: assert (watershed (im, 8),labeled8)
Location | Observed | Expected | Reason
(3,4) 3 0 Abs err 3 exceeds tol 0
(4,4) 0 4 Abs err 4 exceeds tol 0
octave:74> assert (watershed (im), labeled8)
error: ASSERT errors for: assert (watershed (im),labeled8)
Location | Observed | Expected | Reason
(3,4) 3 0 Abs err 3 exceeds tol 0
(4,4) 0 4 Abs err 4 exceeds tol 0
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51719>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51719] image: watershed unit test failure,
Rafael Laboissiere <=