-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.sh
39 lines (28 loc) · 1.11 KB
/
example.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# OPTION 1 : Add noise to the input image and then denoise with dynamic lambda
option=1
input=traffic.png
sigma=10.0
lambda=0.0
./chambolle_ipol $option $input $sigma $lambda noisy.png denoised.png
./imdiff_ipol $input denoised.png difference.png $sigma
# OPTION 2 : Add noise to the input image and then denoise with fixed lambda
option=2
input=traffic.png
sigma=10.0
lambda=0.08
./chambolle_ipol $option $input $sigma $lambda noisy.png denoised.png
./imdiff_ipol $input denoised.png difference.png $sigma
# OPTION 3 : Denoise noisy image with dynamic lambda
option=3
input=traffic_noisy.png
sigma=10.0
lambda=0.0
./chambolle_ipol $option $input $sigma $lambda noisy.png denoised.png
./imdiff_ipol traffic.png denoised.png difference.png $sigma
# OPTION 4 : Denoise noisy image with fixed lambda
option=4
input=traffic_noisy.png
sigma=10.0
lambda=0.08
./chambolle_ipol $option $input $sigma $lambda noisy.png denoised.png
./imdiff_ipol traffic.png denoised.png difference.png $sigma