Skip to content

Commit

Permalink
fixed whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
niebles committed Sep 18, 2014
1 parent f610c88 commit 1162f0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions samples/python2/kalman.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def calc_point(angle):
predict_pt = calc_point(predict_angle)


measurement = measurement_noise_cov * np.random.randn(1, 1)
measurement = measurement_noise_cov * np.random.randn(1, 1)

# generate measurement
measurement = np.dot(measurement_matrix, state) + measurement
Expand All @@ -88,7 +88,6 @@ def draw_cross(center, color, d):
kalman.correct(measurement)

process_noise = process_noise_cov * np.random.randn(2, 1)

state = np.dot(transition_matrix, state) + process_noise

cv2.imshow("Kalman", img)
Expand Down

0 comments on commit 1162f0e

Please sign in to comment.