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

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

[Octave-bug-tracker] [bug #45088] image package: rangefilt requires doma


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #45088] image package: rangefilt requires domain and image to have equa number of dimensions
Date: Wed, 13 May 2015 00:30:36 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.6.0

Update of bug #45088 (project octave):

                 Summary: image package: rangefilt doesn't work on RGB images
=> image package: rangefilt requires domain and image to have equa number of
dimensions

    _______________________________________________________

Follow-up Comment #1:

I confirm this problem. The problem has to do how the padding is done.  The
function that does all the work, __spatial_filtering__, requires things to
have the same number of dimensions. A workaround for this is:


pkg load image
I = ones(10,10,3);
J = rangefilt (I, padarray (ones (3), [0 0 1]));


This could be fixed by padding the things properly inside rangefilt (see
psf2otf for some tips on how to handle padding of things and arbitrary number
of dimensions).  However, it seems to me that this whole function could be
rewritten to use imerode and imdilate for some performance as well.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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