public class AssociatedPair
extends java.lang.Object
Contains the location of a point feature in an image in the key frame and the current frame. Useful for applications where the motion or structure of a scene is computed between two images.
| Modifier and Type | Field and Description |
|---|---|
georegression.struct.point.Point2D_F64 |
p1
Location of the feature in the first image
|
georegression.struct.point.Point2D_F64 |
p2
Location of the feature in the second image.
|
| Constructor and Description |
|---|
AssociatedPair() |
AssociatedPair(boolean declare)
Constructor which allows the points to not be declared.
|
AssociatedPair(double x1,
double y1,
double x2,
double y2)
Creates a new associated point from the two provided points.
|
AssociatedPair(georegression.struct.point.Point2D_F64 p1,
georegression.struct.point.Point2D_F64 p2)
Creates a new associated point from the two provided points.
|
AssociatedPair(georegression.struct.point.Point2D_F64 p1,
georegression.struct.point.Point2D_F64 p2,
boolean newInstance)
Creates a new associated point from the two provided points.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assign(georegression.struct.point.Point2D_F64 p1,
georegression.struct.point.Point2D_F64 p2)
Sets p1 and p2 to reference the passed in objects.
|
georegression.struct.point.Point2D_F64 |
getP1() |
georegression.struct.point.Point2D_F64 |
getP2() |
void |
set(double p1_x,
double p1_y,
double p2_x,
double p2_y)
Sets the value of p1 and p2 to be equal to the values of the passed in objects
|
void |
set(georegression.struct.point.Point2D_F64 p1,
georegression.struct.point.Point2D_F64 p2)
Sets the value of p1 and p2 to be equal to the values of the passed in objects
|
public georegression.struct.point.Point2D_F64 p1
public georegression.struct.point.Point2D_F64 p2
public AssociatedPair()
public AssociatedPair(boolean declare)
declare - If true then new points will be declaredpublic AssociatedPair(double x1,
double y1,
double x2,
double y2)
x1 - image 1 location x-axis.y1 - image 1 location y-axis.x2 - image 2 location x-axis.y2 - image 2 location y-axis.public AssociatedPair(georegression.struct.point.Point2D_F64 p1,
georegression.struct.point.Point2D_F64 p2)
p1 - image 1 locationp2 - image 2 locationpublic AssociatedPair(georegression.struct.point.Point2D_F64 p1,
georegression.struct.point.Point2D_F64 p2,
boolean newInstance)
p1 - image 1 locationp2 - image 2 locationnewInstance - Should it create new points or save a reference to these instances.public void set(georegression.struct.point.Point2D_F64 p1,
georegression.struct.point.Point2D_F64 p2)
public void set(double p1_x,
double p1_y,
double p2_x,
double p2_y)
public void assign(georegression.struct.point.Point2D_F64 p1,
georegression.struct.point.Point2D_F64 p2)
public georegression.struct.point.Point2D_F64 getP1()
public georegression.struct.point.Point2D_F64 getP2()