From: <car...@us...> - 2011-04-14 00:42:43
|
Revision: 8209 http://octave.svn.sourceforge.net/octave/?rev=8209&view=rev Author: carandraug Date: 2011-04-14 00:42:36 +0000 (Thu, 14 Apr 2011) Log Message: ----------- Moved copyright line to header of function Modified Paths: -------------- trunk/octave-forge/main/image/inst/imdilate.m Modified: trunk/octave-forge/main/image/inst/imdilate.m =================================================================== --- trunk/octave-forge/main/image/inst/imdilate.m 2011-04-14 00:11:41 UTC (rev 8208) +++ trunk/octave-forge/main/image/inst/imdilate.m 2011-04-14 00:42:36 UTC (rev 8209) @@ -1,3 +1,4 @@ +## Copyright (C) 2004 Josep Mones i Teixidor <jm...@pu...> ## Copyright (C) 2008 Soren Hauberg ## Copyright (C) 2010 Carnë Draug <car...@gm...> ## @@ -27,7 +28,7 @@ if (!ismatrix(im) || !isreal(im)) error("imdilate: first input argument must be a real matrix"); endif - if (!ismatrix(se) || !isreal(se)) + if (!ismatrix(se) || !isreal(se)) error("imdilate: second input argument must be a real matrix"); endif @@ -38,7 +39,6 @@ ## If image is binary/logical, try to use filter2 (much faster) if (islogical(im)) - # The following line comes from the function dilate, copyright by Josep Mones i Teixidor retval = filter2(se,im)>0; else retval = ordfiltn(im, sum(se(:)!=0), se, 0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |