Skip to content

Commit

Permalink
change interpolation from linear to nearest
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Marini committed May 13, 2024
1 parent 006f2f1 commit c4dff0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyraws/l1/l1_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def register_l1_to_raw(

# Use homography matrix to transform the L1C image wrt the raw image.
l1c_registered_to_raw = cv2.warpPerspective(
l1c_numpy, homography, (raw_width, raw_height)
l1c_numpy, homography, (raw_width, raw_height), flags=cv2.INTER_NEAREST
)
# TODO: save into TIF file, add overwrite param and other params as well
return l1c_registered_to_raw

0 comments on commit c4dff0c

Please sign in to comment.