Class PRnPDirectLinearTransform


  • public class PRnPDirectLinearTransform
    extends java.lang.Object
    Estimates a projective camera given N points, i.e. Projective N Point (PRnP). This is the projective equivalent of the perspective N Point (PnP) problem. Each point consists of a 2D pixel observations and 3D homogenous coordinate. Pixels are normalized to have zero means and standard deviation of 1. 3D points are scaled to have a f-norm of 1. See [1] for details. Each point provides 2 linearly independent equations, requiring a minimum of 6 points. More points are allowed.

    WARNING: Planar surfaces are critical and it will fail on those.

    [1] Peter Abeles, "Scene Reconstruction Notes: BoofCV Technical Report" 2019

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMinimumPoints()  
      boolean isNormalize3D()  
      boolean process​(java.util.List<georegression.struct.point.Point4D_F64> worldPts, java.util.List<georegression.struct.point.Point2D_F64> observed, org.ejml.data.DMatrixRMaj solutionModel)
      Computes projective camera matrix.
      void setNormalize3D​(boolean normalize3D)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • solverNullspace

        public org.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj> solverNullspace
    • Constructor Detail

      • PRnPDirectLinearTransform

        public PRnPDirectLinearTransform()
    • Method Detail

      • process

        public boolean process​(java.util.List<georegression.struct.point.Point4D_F64> worldPts,
                               java.util.List<georegression.struct.point.Point2D_F64> observed,
                               org.ejml.data.DMatrixRMaj solutionModel)
        Computes projective camera matrix.
        Parameters:
        worldPts - points in homogenous 3D coordinates in world frame. Might be modified.
        observed - pixel coordinates of points. not modified
        solutionModel - (Output) 3x4 camera matrix
        Returns:
        true if succesfull
      • getMinimumPoints

        public int getMinimumPoints()
      • isNormalize3D

        public boolean isNormalize3D()
      • setNormalize3D

        public void setNormalize3D​(boolean normalize3D)