boofcv.struct.geo
Class AssociatedPair
- java.lang.Object
-
- boofcv.struct.geo.AssociatedPair
-
- Direct Known Subclasses:
- AssociatedPairTrack
public class AssociatedPair extends java.lang.ObjectContains 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.
-
-
Field Summary
Fields Modifier and Type Field and Description Point2D_F64p1Location of the feature in the first imagePoint2D_F64p2Location of the feature in the second image.
-
Constructor Summary
Constructors 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(Point2D_F64 p1, Point2D_F64 p2)Creates a new associated point from the two provided points.AssociatedPair(Point2D_F64 p1, Point2D_F64 p2, boolean newInstance)Creates a new associated point from the two provided points.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidassign(Point2D_F64 p1, Point2D_F64 p2)Sets p1 and p2 to reference the passed in objects.Point2D_F64getP1()Point2D_F64getP2()voidset(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 objectsvoidset(Point2D_F64 p1, Point2D_F64 p2)Sets the value of p1 and p2 to be equal to the values of the passed in objects
-
-
-
Field Detail
-
p1
public Point2D_F64 p1
Location of the feature in the first image
-
p2
public Point2D_F64 p2
Location of the feature in the second image.
-
-
Constructor Detail
-
AssociatedPair
public AssociatedPair()
-
AssociatedPair
public AssociatedPair(boolean declare)
Constructor which allows the points to not be declared.- Parameters:
declare- If true then new points will be declared
-
AssociatedPair
public AssociatedPair(double x1, double y1, double x2, double y2)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.
-
AssociatedPair
public AssociatedPair(Point2D_F64 p1, Point2D_F64 p2)
Creates a new associated point from the two provided points.- Parameters:
p1- image 1 locationp2- image 2 location
-
AssociatedPair
public AssociatedPair(Point2D_F64 p1, Point2D_F64 p2, boolean newInstance)
Creates a new associated point from the two provided points.- Parameters:
p1- image 1 locationp2- image 2 locationnewInstance- Should it create new points or save a reference to these instances.
-
-
Method Detail
-
set
public void set(Point2D_F64 p1, Point2D_F64 p2)
Sets the value of p1 and p2 to be equal to the values of the passed in objects
-
set
public 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
-
assign
public void assign(Point2D_F64 p1, Point2D_F64 p2)
Sets p1 and p2 to reference the passed in objects.
-
getP1
public Point2D_F64 getP1()
-
getP2
public Point2D_F64 getP2()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG