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

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

[Octave-bug-tracker] [bug #48794] image package: imreconstruct should cl


From: Hartmut
Subject: [Octave-bug-tracker] [bug #48794] image package: imreconstruct should clip marker > mask
Date: Tue, 16 Aug 2016 19:23:38 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

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

Here are some results from Matlab 2014b:

marker = true(3)
mask = logical([1 1 1; 1 0 1; 1 1 1])
im = imreconstruct(marker, mask)
% result: no error message, im == mask, class(im) == logical



marker = ones(3)
mask = [1 1 1; 1 0 1; 1 1 1]
im = imreconstruct(marker, mask)
% result: no error message, im == mask, class(im) == double



marker = ones(3,3,3)
mask = marker;
mask(2,2,2) = 0
im = imreconstruct(marker, mask)
% result: no error message, im == mask, class(im) == double


My conclusions are:
* There must have been a change in Matlab behavior between your Matlab version
(what version is this?) and todays (R2014b and R2015a) version. Nowadays they
DO the clipping if marker > mask, as their documentation says. (For logical
inputs as well as class double inputs.)

* Yes, the Matlab version of imreconstruct does also accept 3D data. Despite
their documentation saying differently.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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