diff options
Diffstat (limited to 'macros/viscircle.sci')
-rw-r--r-- | macros/viscircle.sci | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/macros/viscircle.sci b/macros/viscircle.sci new file mode 100644 index 0000000..b84e7e5 --- /dev/null +++ b/macros/viscircle.sci @@ -0,0 +1,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; + |