if show_all:
do_something(im_hough, "hough transform")
- im_hough = filters.peaks(im_hough)
- if show_all:
- do_something(im_hough, "peak extraction")
+ # im_hough = filters.peaks(im_hough)
+ # if show_all:
+ # do_something(im_hough, "peak extraction")
- im_h2 = filters.high_pass(im_hough, 120)
+ im_h2 = filters.high_pass(im_hough, 96)
if show_all:
do_something(im_h2, "second high pass filters")
def optimize(dimension, boundary, function_d, n_parts, n_turns):
pool = multiprocessing.Pool(None)
- v_max = 30.
+ v_max = boundary
particles = [particle(dimension, boundary, v_max, function_d)
for _ in xrange(n_parts)]
gl_best = max(particles)