public class SceneStructureMetric extends SceneStructureCommon
BundleAdjustment.
It specifies the relationships between cameras, views, and points. A camera projects a 3D point onto the image plane.
Examples of specific models include pinhole and fisheye. A view is a set of observed features from a specific
camera image. Views have an associated camera and specify the pose of the camera when the scene was viewed. Points
describe the scene's 3D structure.| Modifier and Type | Class and Description |
|---|---|
static class |
SceneStructureMetric.Camera |
static class |
SceneStructureMetric.View |
SceneStructureCommon.Point| Modifier and Type | Field and Description |
|---|---|
SceneStructureMetric.Camera[] |
cameras |
SceneStructureMetric.View[] |
views |
homogenous, points, pointSize| Constructor and Description |
|---|
SceneStructureMetric(boolean homogenous)
Configure bundle adjustment
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectViewToCamera(int viewIndex,
int cameraIndex)
Specifies that the view uses the specified camera
|
SceneStructureMetric.Camera[] |
getCameras() |
int |
getParameterCount()
Returns the total number of parameters which will be optimised
|
int |
getUnknownCameraCount()
Returns the number of cameras with parameters that are not fixed
|
int |
getUnknownCameraParameterCount()
Counts the total number of unknown camera parameters that will be optimized/
|
int |
getUnknownViewCount()
Returns the number of view with parameters that are not fixed
|
SceneStructureMetric.View[] |
getViews() |
void |
initialize(int totalCameras,
int totalViews,
int totalPoints)
Call this function first.
|
void |
setCamera(int which,
boolean fixed,
BundleAdjustmentCamera model)
Specifies the camera model being used.
|
void |
setCamera(int which,
boolean fixed,
CameraPinhole intrinsic) |
void |
setCamera(int which,
boolean fixed,
CameraPinholeRadial intrinsic) |
void |
setView(int which,
boolean fixed,
georegression.struct.se.Se3_F64 worldToView)
Specifies the spacial transform for a view.
|
connectPointToView, getPoints, isHomogenous, removePoints, setPoint, setPointpublic SceneStructureMetric.Camera[] cameras
public SceneStructureMetric.View[] views
public SceneStructureMetric(boolean homogenous)
homogenous - if true then homogeneous coordinates are usedpublic void initialize(int totalCameras,
int totalViews,
int totalPoints)
totalCameras - Number of camerastotalViews - Number of viewstotalPoints - Number of pointspublic void setCamera(int which,
boolean fixed,
BundleAdjustmentCamera model)
which - Which camera is being specifiedfixed - If these parameters are constant or notmodel - The camera modelpublic void setCamera(int which,
boolean fixed,
CameraPinhole intrinsic)
public void setCamera(int which,
boolean fixed,
CameraPinholeRadial intrinsic)
public void setView(int which,
boolean fixed,
georegression.struct.se.Se3_F64 worldToView)
which - Which view is being specified/fixed - If these parameters are fixed or notworldToView - The transform from world to view reference framespublic void connectViewToCamera(int viewIndex,
int cameraIndex)
viewIndex - index of viewcameraIndex - index of camerapublic int getUnknownCameraCount()
public int getUnknownViewCount()
public int getUnknownCameraParameterCount()
public int getParameterCount()
public SceneStructureMetric.Camera[] getCameras()
public SceneStructureMetric.View[] getViews()