Skip to content
Snippets Groups Projects
Commit c29d0445 authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

ImProc ass3: Improved parameters.

parent 21f4863a
No related branches found
No related tags found
No related merge requests found
improc/ass3/back_projection.png

53.3 KiB

......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment