summaryrefslogtreecommitdiff
path: root/macros/bilateralFilter.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/bilateralFilter.sci')
-rw-r--r--macros/bilateralFilter.sci13
1 files changed, 13 insertions, 0 deletions
diff --git a/macros/bilateralFilter.sci b/macros/bilateralFilter.sci
new file mode 100644
index 0000000..c686363
--- /dev/null
+++ b/macros/bilateralFilter.sci
@@ -0,0 +1,13 @@
+function new_image = bilateralFilter(image, d, sigmaColor, sigmaSpace)
+
+ image_list = mattolist(image)
+
+ out = opencv_bilateralFilter(image_list, d, sigmaColor, sigmaSpace)
+
+ sz = size(out)
+
+ for i = 1: sz
+ new_image(:, :, i) = out(i)
+ end
+
+endfunction