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

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

[Octave-bug-tracker] [bug #47879] image package: imerode and imdilate se


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #47879] image package: imerode and imdilate sets elements to Inf when SE is zero
Date: Mon, 9 May 2016 18:49:16 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.7.1

Update of bug #47879 (project octave):

                 Summary: imerode Sets a bit to 1/Inf, when the center of the
strel is 0 => image package: imerode and imdilate sets elements to Inf when SE
is zero

    _______________________________________________________

Follow-up Comment #1:

I originally asked the reporter to report it here since I thought it was a
bug. I'm not so sure anymore. The issue can be generalized by using a SE of
zero:


octave> imerode (zeros (3), 0)
ans =

   Inf   Inf   Inf
   Inf   Inf   Inf
   Inf   Inf   Inf



While searching the web, I found a post on stackoverflow asking why this odd
result. I have compiled my thoughts on that answer here
http://stackoverflow.com/a/37117842/1609556

This seems to boil down about finding min of an empty set, or whether erosion
should compute min or infimum (same for imdilation). I would appreciate
comments on this but I'm currently leaning towards actually being the correct
answer (but I will be the first to admit to code it by accident).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47879>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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