From 2c425c06f30ac4be6b0b6d35aab6d390b169efa4 Mon Sep 17 00:00:00 2001 From: Jinwei Zhao Date: Thu, 21 Jan 2016 19:53:38 +0800 Subject: add MATLAB code --- MATLAB/demo.m | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 MATLAB/demo.m (limited to 'MATLAB/demo.m') 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 @@ +close all; + +I = im2double(imread('guide.png')); +p = im2double(imread('src.bmp')); +r = 3; % try r=2, 4, or 8 +% eps = 0.2^2; % try eps=0.1^2, 0.2^2, 0.4^2 +eps = 1e-6; + +q = guidedfilter_color(I, p, r, eps); +imwrite(q, 'matlab.bmp'); -- cgit v1.2.3