Skip to content

Commit

Permalink
* Fix incorrect call to opencv_calib3d.stereoRectify() in `Project…
Browse files Browse the repository at this point in the history
…iveDevice` (issue bytedeco#1802)
  • Loading branch information
saudet committed Apr 26, 2022
1 parent b77945f commit d5943d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Fix incorrect call to `opencv_calib3d.stereoRectify()` in `ProjectiveDevice` ([issue #1802](https://github.com/bytedeco/javacv/issues/1802))
* Retry after 10 ms when `av_read_frame()` returns `EAGAIN` in `FFmpegFrameGrabber.grabFrame()` ([issue #1784](https://github.com/bytedeco/javacv/issues/1784))
* Append `frame_rate=%d/%d` input parameter in `FFmpegFrameFilter` as required by `xfade` ([issue #1776](https://github.com/bytedeco/javacv/issues/1776))
* Update `FFmpegStreamingTimeout` sample to use `timeout` instead of `stimeout` for RTSP ([pull #1758](https://github.com/bytedeco/javacv/pull/1758))
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/bytedeco/javacv/ProjectiveDevice.java
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,8 @@ public CvMat getRectifyingHomography(ProjectiveDevice peer, CvMat H) {
CvMat R2 = R23x3.get(); CvMat P2 = P23x4.get();
Size imageSize = new Size((peer.imageWidth + imageWidth )/2,
(peer.imageHeight + imageHeight)/2); // ?
stereoRectify(cvarrToMat(peer.cameraMatrix), cvarrToMat(cameraMatrix),
cvarrToMat(peer.distortionCoeffs), cvarrToMat(distortionCoeffs),
stereoRectify(cvarrToMat(peer.cameraMatrix), cvarrToMat(peer.distortionCoeffs),
cvarrToMat( cameraMatrix), cvarrToMat( distortionCoeffs),
imageSize, cvarrToMat(relativeR), cvarrToMat(relativeT),
cvarrToMat(R1), cvarrToMat(R2), cvarrToMat(P1), cvarrToMat(P2),
new Mat(), 0, -1, new Size(), null, null);
Expand Down

0 comments on commit d5943d7

Please sign in to comment.