diff --git a/compatibility/bwlabeln_comp.m b/compatibility/bwlabeln_comp.m index f448770..01b0cff 100644 --- a/compatibility/bwlabeln_comp.m +++ b/compatibility/bwlabeln_comp.m @@ -1,4 +1,4 @@ -function varargout = bwlabeln_comp(varargin) +function varargout = bwlabeln(varargin) % bwlabeln(1), bwlabeln(8), bwlabeln(true) give an error on TIO. This patches that if numel(varargin{1})==1 && varargin{1} % patch varargout{1} = 1; diff --git a/compatibility/bwselect_comp.m b/compatibility/bwselect_comp.m index 6046d58..6c4e5b9 100644 --- a/compatibility/bwselect_comp.m +++ b/compatibility/bwselect_comp.m @@ -1,4 +1,4 @@ -function BW2 = bwselect_comp(BW1, C, R, N) +function BW2 = bwselect(BW1, C, R, N) % bwselect in some versions of Octave's Image Package (for example 2.12.0) gives different results % from those in Matlab. This fixes that. The approach used here is: find the connected components % and select those that contain any of the input pixels