Skip to content

Commit

Permalink
optionally return output argument
Browse files Browse the repository at this point in the history
  • Loading branch information
petercorke committed Sep 22, 2012
1 parent c2da350 commit 8e9badb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ithin.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% of the skeletonization algorithm with a pause of DELAY seconds between
% each iteration.
%
% References::
% - Robotics, Vision & Control, Section 12.5.3,
% P. Corke, Springer 2011.
%
% See also HITORMISS, ITRIPLEPOINT, IENDPOINT.


Expand All @@ -27,7 +31,7 @@
% You should have received a copy of the GNU Leser General Public License
% along with MVTB. If not, see <http://www.gnu.org/licenses/>.

function o = ithin(im, delay)
function out = ithin(im, delay)

% create a binary image
im = im > 0;
Expand Down Expand Up @@ -57,3 +61,6 @@
o = im;
end
o = im;
if nargout > 0
out = o;
end

0 comments on commit 8e9badb

Please sign in to comment.