Package boofcv.abst.geo.bundle
Class SceneStructureCommon
- java.lang.Object
-
- boofcv.abst.geo.bundle.SceneStructureCommon
-
- All Implemented Interfaces:
SceneStructure
- Direct Known Subclasses:
SceneStructureMetric,SceneStructureProjective
public abstract class SceneStructureCommon extends java.lang.Object implements SceneStructure
Base class for implementations ofSceneStructure. Contains data structures common to all implementations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSceneStructureCommon.CameraCamera which is viewing the scene.static classSceneStructureCommon.Point
-
Field Summary
Fields Modifier and Type Field Description org.ddogleg.struct.FastQueue<SceneStructureCommon.Camera>camerasbooleanhomogenousTrue if homogenous coordinates are being usedorg.ddogleg.struct.FastQueue<SceneStructureCommon.Point>pointsprotected intpointSize
-
Constructor Summary
Constructors Constructor Description SceneStructureCommon(boolean homogenous)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectPointToView(int pointIndex, int viewIndex)Specifies that the point was observed in this view.org.ddogleg.struct.FastQueue<SceneStructureCommon.Camera>getCameras()intgetObservationCount()org.ddogleg.struct.FastQueue<SceneStructureCommon.Point>getPoints()intgetUnknownCameraParameterCount()Counts the total number of unknown camera parameters that will be optimized/booleanisHomogenous()If true then homogenous coordinates are being used.voidremovePoints(org.ddogleg.struct.GrowQueue_I32 which)Removes the points specified in 'which' from the list of points.voidsetCamera(int which, boolean fixed, BundleAdjustmentCamera model)Specifies the camera model being used.voidsetCamera(int which, boolean fixed, CameraPinhole intrinsic)voidsetCamera(int which, boolean fixed, CameraPinholeBrown intrinsic)voidsetPoint(int which, double x, double y, double z)Specifies the location of a point in 3D spacevoidsetPoint(int which, double x, double y, double z, double w)Specifies the location of a point as a 3D homogenous coordinate-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface boofcv.abst.geo.bundle.SceneStructure
getParameterCount
-
-
-
-
Field Detail
-
cameras
public org.ddogleg.struct.FastQueue<SceneStructureCommon.Camera> cameras
-
points
public final org.ddogleg.struct.FastQueue<SceneStructureCommon.Point> points
-
homogenous
public boolean homogenous
True if homogenous coordinates are being used
-
pointSize
protected int pointSize
-
-
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 specifiedx- coordinate along x-axisy- coordinate along y-axisz- 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 specifiedx- coordinate along x-axisy- coordinate along y-axisz- coordinate along z-axisw- w-coordinate
-
setCamera
public void setCamera(int which, boolean fixed, BundleAdjustmentCamera model)Specifies the camera model being used.- Parameters:
which- Which camera is being specifiedfixed- If these parameters are constant or notmodel- 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 pointviewIndex- index of view
-
getPoints
public org.ddogleg.struct.FastQueue<SceneStructureCommon.Point> getPoints()
-
getCameras
public org.ddogleg.struct.FastQueue<SceneStructureCommon.Camera> getCameras()
-
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:SceneStructureIf true then homogenous coordinates are being used.- Specified by:
isHomogenousin interfaceSceneStructure- Returns:
- true if homogenous coordinates
-
getObservationCount
public int getObservationCount()
-
-