aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MATLAB/demo.m')
-rwxr-xr-xMATLAB/demo.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/MATLAB/demo.m b/MATLAB/demo.m
new file mode 100755
index 0000000..3324f2d
--- /dev/null
+++ b/MATLAB/demo.m
@@ -0,0 +1,10 @@
1close all;
2
3I = im2double(imread('guide.png'));
4p = im2double(imread('src.bmp'));
5r = 3; % try r=2, 4, or 8
6% eps = 0.2^2; % try eps=0.1^2, 0.2^2, 0.4^2
7eps = 1e-6;
8
9q = guidedfilter_color(I, p, r, eps);
10imwrite(q, 'matlab.bmp');
Powered by cgit v1.2.3 (git 2.41.0)