X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=interfaces%2Fmatlab%2Ftoolbox%2Fopencv%2Fcvfloodfill.m;fp=interfaces%2Fmatlab%2Ftoolbox%2Fopencv%2Fcvfloodfill.m;h=0000000000000000000000000000000000000000;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hp=39f92db23d6c42088a53c9bf8c5a418e1425c76f;hpb=454138ff8a20f6edb9b65a910101403d8b520643;p=opencv diff --git a/interfaces/matlab/toolbox/opencv/cvfloodfill.m b/interfaces/matlab/toolbox/opencv/cvfloodfill.m deleted file mode 100644 index 39f92db..0000000 --- a/interfaces/matlab/toolbox/opencv/cvfloodfill.m +++ /dev/null @@ -1,51 +0,0 @@ -function varargout = cvfloodfill(varargin) -%CVFLOODFILL Fill connected domain. -% [dst area value rect] = cvFloodFill(src, seedPoint, newVal, -% loDiff, upDiff, connectivity); -% src - input image -% seedPoint - [x y] -% newVal -% loDiff -% upDiff -% connectivity - default 4 -% -% dst - destination image -% area - area of the segmented component -% value - gray scale value of the segmented component -% rect - ROI of the segmented component - - -if nargin < 5 | nargin > 6 - error 'Invalid number of parameters'; - return; -end - -if nargin > 5 - if varargin{6} ~= 4 & varargin{6} ~= 8 - error 'Invalid 'connectivity' parameter'; - return; - end -else - % default value - varargin{6} = 4; -end - -out = nargout; -if out < 1 - out = 1; -end - -if out > 4 - error 'Too many output parameters' - return; -end; -for idx = out+1:4 - varargout{idx} = []; -end - -if out > 0 - [varargout{1:4}] = feval('cvwrap', 'FloodFill', varargin{:}); -else - feval('cvwrap', 'FloodFill', varargin{:}); -end -return; \ No newline at end of file