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

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

[Octave-bug-tracker] [bug #51724] [octave forge] (image) imregionalmax m


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #51724] [octave forge] (image) imregionalmax misbehaves on float images
Date: Mon, 14 Aug 2017 16:40:54 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36

Follow-up Comment #3, bug #51724 (project octave):

Reading the explanation in
[https://www.mathworks.com/help/images/understanding-morphological-reconstruction.html],
is seems that using img+1 suppresses all maxima which 
are less than 1 level above their neighborhood, which is correct for grayscale
integer images,
but not for double/float image. Using Hartmut suggestion, what about this
fix:


    if (isfloat(img))
      recon = imreconstruct (img, img + eps(img), conn);
    else
      recon = imreconstruct (img, img + 1, conn);
    end



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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