man, 31 10 2011 kl. 12:24 +0000, skrev Carnë Draug: > On 31 October 2011 06:55, Søren Hauberg <so...@hauberg.org> wrote: > > man, 31 10 2011 kl. 04:03 +0000, skrev Carnë Draug: > >> 2011/4/14 Carnë Draug <carandraug+...@gmail.com>: > >> > I noticed that for both the functions imdilate and imerode there's > >> > also a dilate and erode function. They aim to do the same thing so I > >> > was wondering if they should be merged. The differences between them, > >> > at least that I can see, is that dilate and erode are only good for > >> > binary images (they go as far as binarizing them if a non logical > >> > matrix is supplied) while imdilate and imerode are also good for > >> > grayscale images (and use the same method as dilate and erode if > >> > binary images are supplied). Also, dilate and erode have a > >> > non-documented option where the operation is done a number of times > >> > rather than just once. > >> > > >> > I think it would be good to merge them. I'd propose to keep the names > >> > imdilate and imerode for compatibility with the image processing > >> > toolbox of MatLab and the fact they do both kinds of operations > >> > (binary and greyscale). > >> > >> Hi! > >> > >> I was following one of the bugs in imdilate that was fixed with the > >> 3.4 release when I remembered this. Instead of removing them, I made > >> them issue a warning about being deprecated and we can remove them > >> later. > > > > Matlab has both 'erode' and 'imerode' (likewise for 'dilate'). OR have > > they been deprecated from Matlab? > > Hmmm... I can't find their documentation on the MatLab website. The > only reference to the dilate/erode functions is in the list of changes > for version 2.2.2 (R12). Then, on the list of changes for 3.0 (R12+) > they mention the release of the functions imdilate/imerode and never > again on the list of changes do they mention the old functions.
Okay, I checked the Matlab installation at the University and it says that 'dilate' and 'erode' are deprecated. So your change is the right one :-) Søren ------------------------------------------------------------------------------ Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev