Class SceneStructureCommon

    • Field Detail

      • homogenous

        public boolean homogenous
        True if homogenous coordinates are being used
      • pointSize

        protected int pointSize
    • Constructor Detail

      • SceneStructureCommon

        public SceneStructureCommon​(boolean homogenous)
    • Method Detail

      • setPoint

        public void setPoint​(int which,
                             double x,
                             double y,
                             double z)
        Specifies the location of a point in 3D space
        Parameters:
        which - Which point is being specified
        x - coordinate along x-axis
        y - coordinate along y-axis
        z - coordinate along z-axis
      • setPoint

        public void setPoint​(int which,
                             double x,
                             double y,
                             double z,
                             double w)
        Specifies the location of a point as a 3D homogenous coordinate
        Parameters:
        which - Which point is being specified
        x - coordinate along x-axis
        y - coordinate along y-axis
        z - coordinate along z-axis
        w - w-coordinate
      • setCamera

        public void setCamera​(int which,
                              boolean fixed,
                              BundleAdjustmentCamera model)
        Specifies the camera model being used.
        Parameters:
        which - Which camera is being specified
        fixed - If these parameters are constant or not
        model - The camera model
      • setCamera

        public void setCamera​(int which,
                              boolean fixed,
                              CameraPinhole intrinsic)
      • setCamera

        public void setCamera​(int which,
                              boolean fixed,
                              CameraPinholeBrown intrinsic)
      • connectPointToView

        public void connectPointToView​(int pointIndex,
                                       int viewIndex)
        Specifies that the point was observed in this view.
        Parameters:
        pointIndex - index of point
        viewIndex - index of view
      • getUnknownCameraParameterCount

        public int getUnknownCameraParameterCount()
        Counts the total number of unknown camera parameters that will be optimized/
        Returns:
        Number of parameters
      • removePoints

        public void removePoints​(org.ddogleg.struct.GrowQueue_I32 which)
        Removes the points specified in 'which' from the list of points. 'which' must be ordered from lowest to highest index.
        Parameters:
        which - Ordered list of point indexes to remove
      • isHomogenous

        public boolean isHomogenous()
        Description copied from interface: SceneStructure
        If true then homogenous coordinates are being used.
        Specified by:
        isHomogenous in interface SceneStructure
        Returns:
        true if homogenous coordinates
      • getObservationCount

        public int getObservationCount()