summaryrefslogtreecommitdiff
path: root/macros/grayconnected.sci
blob: 09a728972e9d64019ce46f0f6060b84208754a73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function [out]=grayconnected(input1,input2,input3,varargin)
         inputn=mattolist(input1);
         [lhs rhs] = argn(0)
         if rhs>4 then
         error(msprintf("Too many input arguments"))
         elseif rhs==4 then
            a=opencv_grayconnected(inputn,input2,input3,varargin(1));
            dimension=size(a)
            for i = 1:dimension
              out(:,:,i)=a(i);
            end
         else
            a=opencv_grayconnected(inputn,input2,input3);
            dimension=size(a)
            for i = 1:dimension
              out(:,:,i)=a(i);
            end
         end,

endfunction;