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

endfunction;