Added fisheye::distortPoints with non-identity projection matrix#25943
Merged
asmorkalov merged 1 commit intoopencv:4.xfrom Aug 5, 2024
Merged
Added fisheye::distortPoints with non-identity projection matrix#25943asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov merged 1 commit intoopencv:4.xfrom
Conversation
Contributor
Author
|
@catree Could you take a look? What do you think? |
c2579e9 to
6984db0
Compare
vpisarev
reviewed
Jul 23, 2024
vpisarev
reviewed
Jul 23, 2024
vpisarev
reviewed
Jul 23, 2024
vpisarev
reviewed
Jul 23, 2024
| size_t n = undistorted.total(); | ||
| const Vec2f* Xf = undistorted.ptr<Vec2f>(); | ||
| const Vec2d* Xd = undistorted.ptr<Vec2d>(); | ||
| Vec2d* normXd = normalized.ptr<Vec2d>(); |
Contributor
There was a problem hiding this comment.
isn't double precision too heavy here? Shall we use the same data type as input points? Maybe we could add a helper function to do this {(x-cx)/fx, (y-cy)/fy} normalization?
Contributor
|
@asmorkalov Sorry, I am not used to this specific aspect between Just some quick minor comments: |
4e466f7 to
b956b3b
Compare
b956b3b to
75fca7d
Compare
vpisarev
approved these changes
Aug 5, 2024
This was referenced Aug 6, 2024
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


The function covered the case, when the fisheye image was undistorted with new camera matrix found with estimateNewCameraMatrixForUndistortRectify.
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.