Commit c29d0445 authored by Taddeüs Kroes's avatar Taddeüs Kroes

ImProc ass3: Improved parameters.

parent 21f4863a
......@@ -98,7 +98,7 @@ if __name__ == '__main__':
mask = exclude_color([255] * 3, waldo)
import pickle
b = hbp(waldo, env, [64] * 3, 'rgb', 2, mask=mask)
b = hbp(waldo, env, [64] * 3, 'rgb', 15, mask=mask)
pickle.dump(b, open('projection.dat', 'w'))
#b = pickle.load(open('projection.dat', 'r'))
......@@ -116,7 +116,7 @@ if __name__ == '__main__':
w, h = waldo.shape[:2]
print 'Locating peaks...'
peaks = find_peaks(b, .2, w ** 2 + h ** 2)
peaks = find_peaks(b, .75, w ** 2 + h ** 2)
print 'Done'
subplot(121)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment