summaryrefslogtreecommitdiff
path: root/macros/sobel.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/sobel.sci')
-rw-r--r--macros/sobel.sci13
1 files changed, 13 insertions, 0 deletions
diff --git a/macros/sobel.sci b/macros/sobel.sci
new file mode 100644
index 0000000..17af909
--- /dev/null
+++ b/macros/sobel.sci
@@ -0,0 +1,13 @@
+function new_image = sobel(image, ddepth, dx, dy, ksize, scale, delta)
+
+ image_list = mattolist(image)
+
+ out = opencv_sobel(image_list, ddepth, dx, dy, ksize, scale, delta)
+
+ sz = size(out)
+
+ for i=1:sz
+ new_image(:, :, i) = out(i)
+ end
+
+endfunction