Skip to content

Commit 022efce

Browse files
author
JeGa
committed
Testing ...
1 parent 8a7a760 commit 022efce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

binseg.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def unaryenergy(fg, bg, img):
4343
return unary
4444

4545

46-
def pairwiseenergy(img):
46+
def pairwiseenergy(unaries, img):
4747
logging.info("Calculate pairwise energy functions.")
4848
ysize, xsize, _ = img.shape
4949
pairwise = np.array()
@@ -54,7 +54,11 @@ def pairwiseenergy(img):
5454
with progressbar.ProgressBar(max_value=xsize, redirect_stdout=True) as progress:
5555
for x in range(xsize):
5656
for y in range(ysize):
57-
pass # if np.exp(-l * np.linalg.norm())
57+
pass
58+
#if unaries[y, x, 3] ==
59+
# np.exp(-l * np.linalg.norm())
60+
#else:
61+
# pass
5862
progress.update(x)
5963

6064
return pairwise

0 commit comments

Comments
 (0)