Skip to content

Commit

Permalink
tune parameters for vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
thelondonsmiths committed Sep 24, 2023
1 parent 655f3b8 commit 1be2952
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions solex_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,9 @@ def image_process(frame, cercle, options, header, basefich):
return (cc, frame_protus)

def removeVignette(frame_circularized, cercle0):
y_arr = np.percentile(frame_circularized, 90, axis = 0)
y_arr2 = np.percentile(frame_circularized, 90, axis = 1)
shrink = 25 # tuning parameter
y_arr = np.percentile(frame_circularized, 85, axis = 0)
y_arr2 = np.percentile(frame_circularized, 85, axis = 1)
shrink = 65 # tuning parameter
start1 = max(0, int(cercle0[0] - cercle0[2] + shrink))
end1 = min(y_arr.shape[0], int(cercle0[0] + cercle0[2] + 1 - shrink))

Expand Down

0 comments on commit 1be2952

Please sign in to comment.