Package boofcv.abst.geo.bundle
Class SceneStructureProjective
- java.lang.Object
-
- boofcv.abst.geo.bundle.SceneStructureCommon
-
- boofcv.abst.geo.bundle.SceneStructureProjective
-
- All Implemented Interfaces:
SceneStructure
public class SceneStructureProjective extends SceneStructureCommon
Specifies a scene in an arbitrary projective geometry for Bundle Adjustment. Each view is specified using a 3x4 projective camera matrix. Points for the scene can be 3D or 4D homogenous coordinates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSceneStructureProjective.View-
Nested classes/interfaces inherited from class boofcv.abst.geo.bundle.SceneStructureCommon
SceneStructureCommon.Camera, SceneStructureCommon.Point
-
-
Field Summary
Fields Modifier and Type Field Description org.ddogleg.struct.FastQueue<SceneStructureProjective.View>views-
Fields inherited from class boofcv.abst.geo.bundle.SceneStructureCommon
cameras, homogenous, points, pointSize
-
-
Constructor Summary
Constructors Constructor Description SceneStructureProjective(boolean homogenous)Configure bundle adjustment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectViewToCamera(int viewIndex, int cameraIndex)Specifies that the view uses the specified cameraintgetParameterCount()Returns the total number of parameters which will be optimisedintgetUnknownViewCount()Returns the number of view with parameters that are not fixedorg.ddogleg.struct.FastQueue<SceneStructureProjective.View>getViews()voidinitialize(int totalViews, int totalPoints)Initialization with the assumption that aBundleCameraProjectiveis used for all views.voidinitialize(int totalCameras, int totalViews, int totalPoints)Call this function first.voidsetView(int which, boolean fixed, org.ejml.data.DMatrixRMaj worldToView, int width, int height)Specifies the spacial transform for a view.-
Methods inherited from class boofcv.abst.geo.bundle.SceneStructureCommon
connectPointToView, getCameras, getObservationCount, getPoints, getUnknownCameraParameterCount, isHomogenous, removePoints, setCamera, setCamera, setCamera, setPoint, setPoint
-
-
-
-
Field Detail
-
views
public final org.ddogleg.struct.FastQueue<SceneStructureProjective.View> views
-
-
Method Detail
-
initialize
public void initialize(int totalViews, int totalPoints)Initialization with the assumption that aBundleCameraProjectiveis used for all views.- Parameters:
totalViews- Number of viewstotalPoints- Number of points
-
initialize
public void initialize(int totalCameras, int totalViews, int totalPoints)Call this function first. Specifies number of each type of data which is available.- Parameters:
totalCameras- Number of camera modelstotalViews- Number of viewstotalPoints- Number of points
-
setView
public void setView(int which, boolean fixed, org.ejml.data.DMatrixRMaj worldToView, int width, int height)Specifies the spacial transform for a view.- Parameters:
which- Which view is being specified/fixed- If these parameters are fixed or notworldToView- The 3x4 projective camera matrix that converts a point in world to view pixelswidth- Image's widthheight- Image's height
-
connectViewToCamera
public void connectViewToCamera(int viewIndex, int cameraIndex)Specifies that the view uses the specified camera- Parameters:
viewIndex- index of viewcameraIndex- index of camera
-
getUnknownViewCount
public int getUnknownViewCount()
Returns the number of view with parameters that are not fixed- Returns:
- non-fixed view count
-
getParameterCount
public int getParameterCount()
Returns the total number of parameters which will be optimised- Returns:
- number of parameters
-
getViews
public org.ddogleg.struct.FastQueue<SceneStructureProjective.View> getViews()
-
-