Package boofcv.struct.geo
Class AssociatedPair3D
java.lang.Object
boofcv.struct.geo.AssociatedPair3D
The observed location of a feature in two camera views. Typically a point in homogenous coordinates a line.
-
Field Summary
Modifier and TypeFieldDescriptionLocation of the feature in the first imageLocation of the feature in the second image. -
Constructor Summary
ConstructorDescriptionAssociatedPair3D
(double x1, double y1, double z1, double x2, double y2, double z2) Creates a new associated point from the two provided points.AssociatedPair3D
(Point3D_F64 p1, Point3D_F64 p2) Assigns the value to the two passed in features.AssociatedPair3D
(Point3D_F64 p1, Point3D_F64 p2, boolean newInstance) Allows features to either be copied or saved as references. -
Method Summary
Modifier and TypeMethodDescriptionvoid
assign
(Point3D_F64 p1, Point3D_F64 p2) Changes the references to the passed in objects.copy()
void
Rescale the points so that their norm is 1setTo
(double x1, double y1, double z1, double x2, double y2, double z2) Assigns this object to be equal to the passed in values.setTo
(AssociatedPair3D original) setTo
(Point3D_F64 p1, Point3D_F64 p2) Assigns this object to be equal to the passed in values.toString()
static AssociatedPair3D
wrap
(Point3D_F64 p1, Point3D_F64 p2) void
zero()
Sets internal points to zero
-
Field Details
-
p1
Location of the feature in the first image -
p2
Location of the feature in the second image.
-
-
Constructor Details
-
AssociatedPair3D
public AssociatedPair3D() -
AssociatedPair3D
public AssociatedPair3D(double x1, double y1, double z1, double x2, double y2, double z2) Creates a new associated point from the two provided points.- Parameters:
x1
- image 1 location x-axis.y1
- image 1 location y-axis.x2
- image 2 location x-axis.y2
- image 2 location y-axis.
-
AssociatedPair3D
Assigns the value to the two passed in features. A copy of the features is made.- Parameters:
p1
- image 1 locationp2
- image 2 location
-
AssociatedPair3D
Allows features to either be copied or saved as references.- Parameters:
p1
- image 1 locationp2
- image 2 locationnewInstance
- Should it create new points or save a reference to these instances.
-
-
Method Details
-
wrap
-
setTo
-
setTo
Assigns this object to be equal to the passed in values. -
setTo
Assigns this object to be equal to the passed in values. -
normalizePoints
public void normalizePoints()Rescale the points so that their norm is 1 -
assign
Changes the references to the passed in objects. -
zero
public void zero()Sets internal points to zero -
copy
-
toString
-