Skip to content

Update homography tutorial with a small exercise#22130

Merged
asmorkalov merged 1 commit intoopencv:3.4from
catree:homography_tutorial_add_exercise
Aug 26, 2022
Merged

Update homography tutorial with a small exercise#22130
asmorkalov merged 1 commit intoopencv:3.4from
catree:homography_tutorial_add_exercise

Conversation

@catree
Copy link
Copy Markdown
Contributor

@catree catree commented Jun 19, 2022

An idea I had.
Propose a small exercise to show the different homography transformations operating step-by-step. This should allow the user to learn, exercise the following topics:

  • homogeneous transformations,
  • rotation interpolation (and maybe SLERP, LERP, ... if using quaternion?),
  • homography transformation from camera displacement

There is a dedicated YouTube channel for OpenCV tutorials: https://www.youtube.com/user/OpenCVTutorials https://www.youtube.com/user/opencvdev/videos
Would be great if you could add the following video on this channel:

homography_tutorial_demo_3.mp4

Title of the video:

OpenCV homography tutorial - Demo 3: Homography from the camera displacement

And with the following description:

This video illustrates the following OpenCV homography tutorial: https://docs.opencv.org/4.x/d9/dab/tutorial_homography.html (here for OpenCV 4 version, select the appropriate OpenCV version you are using).
Left video shows the source image warped using the homography transformation computed from different camera displacements. Right video shows the "image error" between the final desired camera viewpoint and the currently warped image using the homography computed at the current step.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake


This demo shows you how to compute the homography transformation from two camera poses. Try to perform the same operations, but by computing N inter homography this time. Instead of computing one homography to directly warp the source image to the desired camera viewpoint, perform N warping operations to the see the different transformations operating.

You should get something similar to this video:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be updated with the YouTube ID:

Suggested change
You should get something similar to this video:
You should get something similar to this video:
@youtube{ViPN810E0SU}

@asmorkalov asmorkalov requested a review from vpisarev June 21, 2022 06:15
@vpisarev
Copy link
Copy Markdown
Contributor

Dear @catree, thank you for preparing it. I don't think we have access to that video channel, it's 10-years old and nor me nor my colleagues heard of it. If it's possible, you can put this video to your channel and we can put the corresponding link to the text

@catree
Copy link
Copy Markdown
Contributor Author

catree commented Jul 26, 2022

Hello @vpisarev

Would it be possible to upload the video on this channel (https://www.youtube.com/user/opencvdev/videos) instead?

@asmorkalov asmorkalov merged commit 8811581 into opencv:3.4 Aug 26, 2022
@alalek alalek mentioned this pull request Oct 15, 2022
@alalek alalek mentioned this pull request Jan 8, 2023
@asmorkalov asmorkalov added this to the 4.7.0 milestone Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants