[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48794] image package: imreconstruct should cl
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #48794] image package: imreconstruct should clip marker > mask |
Date: |
Mon, 15 Aug 2016 21:59:16 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #1, bug #48794 (project octave):
I only needed to comment out the code that makes the check to get the results
you wanted. See
https://bitbucket.org/carandraug/octave-image/commits/2c4e414f727c8edc87246172ba1821d04ae3791e
But I'm not sure it and need more testing if there's any assumption in the
algorithm about it (I'd prefer to avoid having to actually modify the raw data
-- although there's another step that already makes a copy so maybe it's not a
big deal).
Note that the Matlab documentation also says that the image needs to be 2D
which is not true. Testing in Matlab, I actually get the error about marker
being higher than mask if I use non-logical:
>> imreconstruct (ones (3), [1 1 1; 1 0 1; 1 1 1])
??? Error using ==> imreconstructmex
MARKER pixels must be <= MASK pixels.
Error in ==> imreconstruct at 77
im = imreconstructmex(marker,mask);
Can you test this in a more recent Matlab version?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48794>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/