Skip to content

Inf/Nan in cvProjectpoints2 #14703

Open
Open

Description

@bhack
  • Can we have inf/nan issue in cvProjectPoints2Internal?

  • How we are informing the user about clipping not visible (in the camera plane) points?

From #14411 (comment)
/cc @alalek

See also https://answers.opencv.org/question/20138/projectpoints-fails-with-points-behind-the-camera/

Activity

  1. alalek commented on Jun 3, 2019

    @alalek
    Member

    How we are informing

    Probably there is no such functionality. We expecting that inputs are valid for processing by selected algorithm (and it is converge). Like cv::add() don't check/inform about NaNs.
    For extra informing, separate function should be designed (like cv::patchNaNs() or filterPoints()).

  2. bhack commented on Jun 3, 2019

    @bhack
    Author

    But we can still have 1/EPS not Z=0 values from user arbitrary 3d point that will let to have exploding coords.

  3. bhack commented on Jun 3, 2019

    @bhack
    Author

    Can the coords overflow avoided by expanding the API with optional znear and zfar clipping parameters?

  4. bhack commented on Jun 3, 2019

    @bhack
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions