Package boofcv.abst.geo.bundle
Class SceneStructureMetric.Rigid
java.lang.Object
boofcv.abst.geo.bundle.SceneStructureMetric.Rigid
- Enclosing class:
- SceneStructureMetric
A set of connected points that form a rigid structure. The 3D location of points
in the rigid body's reference frame is constant.
-
Field Summary
Modifier and TypeFieldDescriptionint
Index of the first point in the listboolean
If the parameters are assumed to be known and should not be optimised.final Se3_F64
Transform from world into the rigid object's frameLocation of points in object's reference frame. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connectPointToView
(int pointIdx, int viewIdx) Deprecated.void
connectPointToView
(int pointIdx, int viewIdx, float pixX, float pixY, SceneObservations sceneObs) Connects the point to the view and adds the pixel observations.void
getPoint
(int which, Point3D_F64 p) void
getPoint
(int which, Point4D_F64 p) int
void
init
(int numPoints, int dof) Resets and initialzies internal data structures.boolean
isIdentical
(SceneStructureMetric.Rigid m, double tol) void
setPoint
(int which, double x, double y, double z) void
setPoint
(int which, double x, double y, double z, double w)
-
Field Details
-
known
public boolean knownIf the parameters are assumed to be known and should not be optimised. -
object_to_world
Transform from world into the rigid object's frame -
points
Location of points in object's reference frame. The coordinate is always fixed. -
indexFirst
public int indexFirstIndex of the first point in the list
-
-
Constructor Details
-
Rigid
public Rigid()
-
-
Method Details
-
init
public void init(int numPoints, int dof) Resets and initialzies internal data structures. If possible previously declared data is reused- Parameters:
numPoints
- Number of points in the rigid bodydof
- DOF in each point
-
connectPointToView
Deprecated.Indicates that this point has been observed in this view and performs sanity checks. -
connectPointToView
public void connectPointToView(int pointIdx, int viewIdx, float pixX, float pixY, SceneObservations sceneObs) Connects the point to the view and adds the pixel observations. These steps can be easy to mess up, so it's recommended that you use this function.NOTE: Make sure you call
SceneStructureMetric.assignIDsToRigidPoints()
before calling this function.- Parameters:
pointIdx
- Index of the feature on the rigid objectviewIdx
- Which view this observation is frompixX
- The pixel-x observationpixY
- The pixel-y observationsceneObs
- Data structure storing the observations
-
setPoint
public void setPoint(int which, double x, double y, double z) -
setPoint
public void setPoint(int which, double x, double y, double z, double w) -
getPoint
-
getPoint
-
getTotalPoints
public int getTotalPoints() -
isIdentical
-
connectPointToView(int, int, float, float, SceneObservations)
instead.