aboutsummaryrefslogtreecommitdiff
blob: 3324f2dc9d268b6379a9c8c6458390cfa26f6ca9 (plain) (blame)
1
2
3
4
5
6
7
8
9
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');
Powered by cgit v1.2.3 (git 2.41.0)