Skip to content

Commit

Permalink
Merge pull request #128 from luedu/patch-1
Browse files Browse the repository at this point in the history
Fix wrong bayer filter coefficient
  • Loading branch information
fariza authored Oct 12, 2018
2 parents 344d819 + c335595 commit 157408c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emva1288/camera/routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def get_bayer_filter(t00, t01, t10, t11, width, height, w):
t10 = poisson(w, int(t10))
t11 = poisson(w, int(t11))
pattern_rep = np.array([[t00/np.max(t00), t01/np.max(t01)],
[t10/np.max(t10), t00/np.max(t11)]])
[t10/np.max(t10), t11/np.max(t11)]])
b_filter = array_tile(pattern_rep, height, width)
return b_filter

Expand Down

0 comments on commit 157408c

Please sign in to comment.