changeset 485:81f8c953fe27

image package: functions using the black/close option of imtophat, now use imbothat
author carandraug
date Wed, 02 Nov 2011 14:58:36 +0000
parents 27c9e8ad9d44
children 442f8b087904
files inst/bwmorph.m inst/mmgradm.m
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/inst/bwmorph.m
+++ b/inst/bwmorph.m
@@ -184,7 +184,7 @@
 ## W. K. Pratt, "Digital Image Processing"
 ## Gonzalez and Woods, "Digital Image Processing"
 ##
-## @seealso{imdilate, imerode, imtophat, makelut, applylut}
+## @seealso{imdilate, imerode, imtophat, imbothat, makelut, applylut}
 ## @end deftypefn
 
 
@@ -215,7 +215,7 @@
   switch(operation)
     case('bothat')
       se  = ones(3);
-      BW2 = imtophat (BW, se, 'close');
+      BW2 = imbothat (BW, se);
       if(n>1)
         ## TODO: check if ignoring n>1 is ok. Should I just ignore it
         ## TODO: without a warning?
@@ -528,7 +528,7 @@
 
     case('tophat')
       se  = ones(3);
-      BW2 = imtophat (BW, se, 'open');
+      BW2 = imtophat (BW, se);
       if(n>1)
         ## TODO: check if ignoring n>1 is ok.
         disp("WARNING: n>1 has no sense here. Using n=1. Please fill a bug if you think this behaviour is not correct");
--- a/inst/mmgradm.m
+++ b/inst/mmgradm.m
@@ -27,7 +27,7 @@
 ## The morphological gradient of a image corresponds to its erosion subtracted
 ## to its dilation.
 ##
-## @seealso{imerode, imdilate, imopen, imclose, imtophat}
+## @seealso{imerode, imdilate, imopen, imclose, imtophat, imbothat}
 ## @end deftypefn
 
 function grad = mmgradm (im, se_dil, se_ero)