Skip to content

Commit 7ddca04

Browse files
authored
Merge pull request #1965 from HEXRD/projective-transform-from-estimate
Fix ProjectiveTransform warning
2 parents 833d4aa + 41a7d41 commit 7ddca04

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hexrdgui/calibration/cartesian_plot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ def create_warped_image(self, detector_id: str) -> np.ndarray:
298298
dst = panel.cartToPixel(corners, pixels=True)
299299
dst = dst[:, ::-1]
300300

301-
tform3 = tf.ProjectiveTransform()
302-
tform3.estimate(src, dst)
301+
tform3 = tf.ProjectiveTransform.from_estimate(src, dst)
303302

304303
res = tf.warp(
305304
img,

0 commit comments

Comments
 (0)