Skip to content

video: remove duplicate RANSAC code - #12248

Merged
alalek merged 4 commits into
opencv:masterfrom
hrnr:video_remove_ransac
Aug 21, 2018
Merged

alalek merged 4 commits into
opencv:masterfrom
hrnr:video_remove_ransac

Conversation

@hrnr

@hrnr hrnr commented Aug 18, 2018 •

Copy link
Copy Markdown
Contributor

Merge with contrib: opencv/opencv_contrib#1724

Proposal to remove duplicate RANSAC code in video module in OpenCV 4.

In ideal world, we would just remove estimateRigidTransform as the RANSAC estimators are implemented in calib3d. To support transition I have kept at least the most used overload as deprecated.

Follow up of #10569 (comment)

Related #11594 #10631

hrnr added 2 commits August 18, 2018 19:17
* remove RANSAC code video module. The module now uses RANSAC estimators from calib3d.
* deprecate estimateRigidTransform
* remove from wrappers
* replace usage in shape module. shape module now links to calib3d instead of video module.
* reprecate also C API version
@hrnr

hrnr commented Aug 18, 2018

Copy link
Copy Markdown
Contributor Author

I have replaced the usage of estimateRigidTransform through the library to calib3d estimators.

However, tests are still triggering deprecated warnings. Should tests be removed?

Another warnings spur from C API. Will C API be removed from OpenCV 4? Should I just remove cvEstimateRigidTransform?

@alalek

alalek commented Aug 18, 2018

Copy link
Copy Markdown
Member

Will C API be removed from OpenCV 4

Yes.
We have plans to drop C-API from public headers and tests at least. Refactoring of internal implementations of OpenCV functions is not an easy task (and sometimes results are not 100% compatible).

Should I just remove cvEstimateRigidTransform

Sure.

@hrnr
hrnr force-pushed the video_remove_ransac branch from 9a67f37 to 010991a Compare August 20, 2018 10:03
@hrnr

hrnr commented Aug 20, 2018

Copy link
Copy Markdown
Contributor Author

I have removed cvEstimateRigidTransform and supressed deprecation warnings in test. All is green now.

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me! Thank you 👍

@alalek
alalek merged commit 49283ec into opencv:master Aug 21, 2018
a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
* video: remove duplicate RANSAC code

* remove RANSAC code video module. The module now uses RANSAC estimators from calib3d.
* deprecate estimateRigidTransform

* replace internal usage of deprecated estimateRigidTransform

* remove from wrappers
* replace usage in shape module. shape module now links to calib3d instead of video module.
* reprecate also C API version

* remove cvEstimateRigidTransform

* supress deprecated warnings in estimateRigidTransform test

* the function is now deprecated
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
* video: remove duplicate RANSAC code

* remove RANSAC code video module. The module now uses RANSAC estimators from calib3d.
* deprecate estimateRigidTransform

* replace internal usage of deprecated estimateRigidTransform

* remove from wrappers
* replace usage in shape module. shape module now links to calib3d instead of video module.
* reprecate also C API version

* remove cvEstimateRigidTransform

* supress deprecated warnings in estimateRigidTransform test

* the function is now deprecated
@varun-jaiswal17 varun-jaiswal17 mentioned this pull request Aug 10, 2026
6 tasks done
@asmorkalov asmorkalov mentioned this pull request Aug 24, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: calib3d future This issue can't be fixed during restrictions of the compatibility requirements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants