Package boofcv.alg.sfm.structure2
Class GeneratePairwiseImageGraph
- java.lang.Object
-
- boofcv.alg.sfm.structure2.GeneratePairwiseImageGraph
-
public class GeneratePairwiseImageGraph extends java.lang.ObjectGiven agraph of imageswith similar appearance, create a graph in which images with a geometric relationship are connected to each other. Determine if that relationship has 3D geometry or is composed of a homography. If there is a geometric relationship or not is determined by the number of inliers. The minimum number is specified byminimumInliers. A threshold is used for classifying an edge as 3D or notratio3Dlen(F)/len(H) a value of 1 just requires equality, greater than one means there must be more features from F (fundamental) than H (homography).
-
-
Field Summary
Fields Modifier and Type Field Description PairwiseImageGraph2graphintminimumInliersThe minimum number of inliers for an edge to be accepteddoubleratio3DIf number of matches from fundamental divided by homography is more than this then it is considered a 3D scene
-
Constructor Summary
Constructors Constructor Description GeneratePairwiseImageGraph()Configures and declares concensum matching algorithms
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateEdge(java.lang.String src, java.lang.String dst, org.ddogleg.struct.FastQueue<boofcv.struct.geo.AssociatedPair> pairs, org.ddogleg.struct.FastQueue<boofcv.struct.feature.AssociatedIndex> matches)Connects two views together if they meet a minimal set of geometric requirements.PairwiseImageGraph2getGraph()intgetMinimumInliers()doublegetRatio3D()voidprocess(LookupSimilarImages db)Connects images by testing features for a geometric relationship.voidsetMinimumInliers(int minimumInliers)voidsetRatio3D(double ratio3D)
-
-
-
Field Detail
-
graph
public PairwiseImageGraph2 graph
-
minimumInliers
public int minimumInliers
The minimum number of inliers for an edge to be accepted
-
ratio3D
public double ratio3D
If number of matches from fundamental divided by homography is more than this then it is considered a 3D scene
-
-
Method Detail
-
process
public void process(LookupSimilarImages db)
Connects images by testing features for a geometric relationship. Retrieve the results usinggetGraph()- Parameters:
db- Images with feature associations
-
createEdge
protected void createEdge(java.lang.String src, java.lang.String dst, org.ddogleg.struct.FastQueue<boofcv.struct.geo.AssociatedPair> pairs, org.ddogleg.struct.FastQueue<boofcv.struct.feature.AssociatedIndex> matches)Connects two views together if they meet a minimal set of geometric requirements. Determines if there is strong evidence that there is 3D information present and not just a homography- Parameters:
src- ID of src imagedst- ID of dst imagepairs- Associated features pixelsmatches- Associated features feature indexes
-
getGraph
public PairwiseImageGraph2 getGraph()
-
getMinimumInliers
public int getMinimumInliers()
-
setMinimumInliers
public void setMinimumInliers(int minimumInliers)
-
getRatio3D
public double getRatio3D()
-
setRatio3D
public void setRatio3D(double ratio3D)
-
-