Skip to content

Commit

Permalink
feat: do rectification on gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrutchf committed Sep 14, 2024
1 parent 0b7ff3a commit f871659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyfishsensedev/image/image_rectifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ def __init__(self, lens_calibration: LensCalibration):

def rectify(self, img: np.ndarray) -> np.ndarray:
return cv2.undistort(
img,
cv2.UMat(img),
self._lens_calibration.camera_matrix,
self._lens_calibration.distortion_coefficients,
)
).get()


if __name__ == "__main__":
Expand Down

0 comments on commit f871659

Please sign in to comment.