Skip to content

Commit c4dff0c

Browse files
author
Luca Marini
committed
change interpolation from linear to nearest
1 parent 006f2f1 commit c4dff0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyraws/l1/l1_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def register_l1_to_raw(
587587

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

0 commit comments

Comments
 (0)