summaryrefslogtreecommitdiff
path: root/macros/filter.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/filter.sci')
-rw-r--r--macros/filter.sci8
1 files changed, 8 insertions, 0 deletions
diff --git a/macros/filter.sci b/macros/filter.sci
new file mode 100644
index 0000000..e628942
--- /dev/null
+++ b/macros/filter.sci
@@ -0,0 +1,8 @@
+function [out]=filter(input_image,depth,kernel_matrix,anchor_x,anchor_y,delta)
+ input_image1=mattolist(input_image);
+ a=opencv_filter(input_image1,depth,kernel_matrix,anchor_x,anchor_y,delta);
+ dimension=size(a)
+ for i = 1:dimension
+ out(:,:,i)=a(i);
+ end
+endfunction;