changeset 475:88e70dd531a5

dilate, erode: marked as deprecated in favour of imerode and imdilate
author carandraug
date Mon, 31 Oct 2011 03:57:36 +0000
parents d3de48ecb728
children 16c400a73d85
files inst/dilate.m inst/erode.m
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/inst/dilate.m
+++ b/inst/dilate.m
@@ -42,6 +42,8 @@
 ## Author:  Josep Mones i Teixidor <jmones@puntbarra.com>
 
 function BW2 = dilate(BW1, SE, a, b)
+  warning ("'dilate' has been deprecated in favor of 'imdilate'. This function will be removed from future versions of the 'image' package");
+
   alg='spatial';
   n=1;
   if (nargin < 1 || nargin > 4)
--- a/inst/erode.m
+++ b/inst/erode.m
@@ -42,6 +42,8 @@
 ## Author:  Josep Mones i Teixidor <jmones@puntbarra.com>
 
 function BW2 = erode(BW1, SE, a, b)
+  warning ("'erode' has been deprecated in favor of 'imerode'. This function will be removed from future versions of the 'image' package");
+
   alg='spatial';
   n=1;
   if (nargin < 1 || nargin > 4)