octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51719] [octave forge] (image) watershed unit


From: anonymous
Subject: [Octave-bug-tracker] [bug #51719] [octave forge] (image) watershed unit test failure
Date: Wed, 18 Aug 2021 10:48:38 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #1, bug #51719 (project octave):

Per Carnë's comment in watershed.cc


// Implements watershed in a quite naïve way.  From the wikipedia, named
// "Meyer's flooding algorithm" (but I could not find the actual paper
// that reports it).


The paper can be found on Isabelle Bloch's website:

https://perso.telecom-paristech.fr/bloch/P6Image/Projets/Watersnakes/meyer1994.pdf


Also there is a .m-file implementation
https://github.com/Stick-To/watershed/blob/master/mywatershed.m
Which follows from Digital Image Processing_3ed_Gonzalez 

However, this code also fails for these two tests.


ASSERT errors for:  assert (watershed (im),labeled8)

  Location  |  Observed  |  Expected  |  Reason
   (3,4)          3            0         Abs err 3 exceeds tol 0 by 3
   (4,4)          0            4         Abs err 4 exceeds tol 0 by 4

ASSERT errors for:  assert (watershed (im_full),matlab_result_full)

  Location  |  Observed  |  Expected  |  Reason
   (3,4)          2            0         Abs err 2 exceeds tol 0 by 2
   (3,5)          0            4         Abs err 4 exceeds tol 0 by 4


Which is the same as the errors in image v2.12.0

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?51719>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]