Skip to content

Commit

Permalink
lesgo
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Oct 18, 2024
1 parent b33933f commit aa6c6d9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public void testUndistortImagePointsWithRotation(@Enum ImageRotationMode rot) {
CameraCalibrationCoefficients rotatedCoeffs = rotatedFrameProps.cameraCalibration;

Point[] originalPoints = {new Point(100, 100), new Point(200, 200), new Point(300, 100)};
MatOfPoint2f originalMatOfPoints = new MatOfPoint2f(originalPoints);

// Distort the origional points
var distortedOriginalPoints =
Expand All @@ -112,7 +111,7 @@ public void testUndistortImagePointsWithRotation(@Enum ImageRotationMode rot) {

// and rotate them once distorted
var rotatedDistortedPoints =
Arrays.stream(originalPoints)
distortedOriginalPoints.stream()
.map(it -> rot.rotatePoint(it, frameProps.imageWidth, frameProps.imageHeight))
.collect(Collectors.toList());

Expand Down

0 comments on commit aa6c6d9

Please sign in to comment.