Landmark#
- class Landmark(P: ndarray, fixed: bool = False)[source][source]#
Create new landmark point
- Parameters:
P (ndarray(3)) – landmark coordinate
fixed (bool, optional) – point is fixed, defaults to False
Represent a world point in the bundle adjustment problem. If the point is not
fixedit will be adjusted during the optimization.- Seealso:
pgraph.Vertex
Methods
adjacent()Vertices adjacent to this vertex
closest()Return the closest vertex to this vertex
connect(dest[, edge, cost, data])Connect two vertices with an edge
copy([cls])Copy a vertex
distance(coord)Distance from vertex to point
edges()The edges at the vertex, in the order they were connected
edges_to(dest)All the edges from this vertex to another vertex
edgeto(dest)The edge from this vertex to an adjacent vertex
Heuristic distance to another vertex
in_edges()The edges entering the vertex
Adjacent vertices paired with the edges that lead to them
isadjacent(vertex)Test if a vertex is adjacent to this vertex
isneighbor(vertex)Test if a vertex is adjacent to this vertex
isneighbour(vertex)Test if a vertex is adjacent to this vertex
Vertices adjacent to this vertex
Vertices adjacent to this vertex
The edges leaving the vertex
Vertices that have an edge to this vertex
remove()Remove this vertex, and all its edges, from its graph
Vertices that this vertex has an edge to
Properties
Degree of vertex
Number of edges entering the vertex
Index into the state vector (base method)
Index into the variable state vector (base method)
Value is fixed (base method)
Number of the graph component that contains the vertex
Name of the vertex
Number of edges leaving the vertex
Get landmark position
The x-coordinate of an embedded vertex
The y-coordinate of an embedded vertex
The z-coordinate of an embedded vertex