better threshold value for mask

This commit is contained in:
deeppomf 2018-02-25 09:47:43 -05:00
parent fe86070b74
commit c0ccc57ea8

View File

@ -137,7 +137,7 @@ def get_points():
#rotate random amount between 0 and 90 degrees #rotate random amount between 0 and 90 degrees
m = scipy.ndimage.rotate(m, np.random.random()*90, reshape = False) m = scipy.ndimage.rotate(m, np.random.random()*90, reshape = False)
#set all elements greater than 0 to 1 #set all elements greater than 0 to 1
m[m > 0] = 1 m[m > 0.5] = 1
mask.append(m) mask.append(m)