Skip to content

Commit 0408ad5

Browse files
committed
Comment explaining change in initialization.
1 parent bc1d91a commit 0408ad5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pcv_book/rof.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def denoise(im,U_init,tolerance=0.1,tau=0.125,tv_weight=100):
1515

1616
# initialize
1717
U = U_init
18-
Px = zeros((m, n)) #x-component to the dual field
19-
Py = zeros((m, n)) #y-component of the dual field
18+
Px = zeros((m, n)) # x-component to the dual field (NOTE: this initialization changed from what's in the book)
19+
Py = zeros((m, n)) # y-component of the dual field
2020
error = 1
2121

2222
while (error > tolerance):

0 commit comments

Comments
 (0)