summaryrefslogtreecommitdiff
path: root/macros/erode.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/erode.sci')
-rw-r--r--macros/erode.sci9
1 files changed, 9 insertions, 0 deletions
diff --git a/macros/erode.sci b/macros/erode.sci
new file mode 100644
index 0000000..336e220
--- /dev/null
+++ b/macros/erode.sci
@@ -0,0 +1,9 @@
+function [out]=erode(input_image ,kernel,actualkernel,anchorX,anchorY)
+input_image1=mattolist(input_image);
+ a=opencv_erode(input_image1 ,kernel,actualkernel,anchorX,anchorY);
+ dimension=size(a)
+ for i = 1:dimension
+ out(:,:,i)=a(i);
+ end
+
+endfunction;