Skip to content

Fix for Homogenous precision #14242 - #14411

Merged
alalek merged 3 commits into
opencv:3.4from
ostarling:3.4_fix_for_14242
Apr 29, 2019
Merged

alalek merged 3 commits into
opencv:3.4from
ostarling:3.4_fix_for_14242

Conversation

@ostarling

Copy link
Copy Markdown
Contributor

resolves #14242

@ostarling
ostarling changed the base branch from master to 3.4 April 24, 2019 22:52
Comment thread modules/calib3d/src/fundam.cpp Resolved
@csukuangfj

Copy link
Copy Markdown
Contributor

duplicate #14289

@ostarling

Copy link
Copy Markdown
Contributor Author

Sure, I’ll do that. Do you have anything against turning these 6 or so similar changes to an inline function?

Comment thread modules/calib3d/src/fundam.cpp Resolved
Comment thread modules/calib3d/src/fundam.cpp Resolved
Comment thread modules/calib3d/src/fundam.cpp Resolved
 - moved scale computation to an inline function
 - use std::numeric_limits<float>::epsilon() instead of != 0.0
Comment thread modules/calib3d/src/fundam.cpp Resolved
 - fixed warnings for type conversion
Comment thread modules/calib3d/src/fundam.cpp Resolved
 - use float epsilon() for truncation of doubles
@alalek
alalek merged commit 643d9df into opencv:3.4 Apr 29, 2019
@alalek alalek mentioned this pull request Apr 30, 2019
@bhack

bhack commented May 28, 2019

Copy link
Copy Markdown

@alalek Sorry for cross-repository. What do you think about related issue in this PR using directly 1 as a scale factor. See kornia/kornia#148 (comment)

@bhack

bhack commented Jun 3, 2019 •

Copy link
Copy Markdown

@alalek Have we a problem also in cvProjectPoints2Internal?
How are you clipping not visible (in the camera plane) points?

@alalek

alalek commented Jun 3, 2019

Copy link
Copy Markdown
Member

Probably this code should be changed too.

@bhack

bhack commented Jun 3, 2019

Copy link
Copy Markdown

@alalek Do you want to use cv::convertPointsFromHomogeneous on that line?

@bhack

bhack commented Jun 3, 2019

Copy link
Copy Markdown

The new issue is at #14703

SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
* Fix for Homogenous precision opencv#14242:
 - moved scale computation to an inline function
 - use std::numeric_limits<float>::epsilon() instead of != 0.0

* Fix for Homogenous precision opencv#14242:
 - fixed warnings for type conversion

* Fix for Homogenous precision opencv#14242:
 - use float epsilon() for truncation of doubles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants