public class GeneratePairwiseImageGraph
extends java.lang.Object
graph of images with 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
by minimumInliers. A threshold is used for classifying an edge as 3D or not ratio3D len(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).| Modifier and Type | Field and Description |
|---|---|
PairwiseImageGraph2 |
graph |
int |
minimumInliers
The minimum number of inliers for an edge to be accepted
|
double |
ratio3D
If number of matches from fundamental divided by homography is more than this then it is considered a 3D scene
|
| Constructor and Description |
|---|
GeneratePairwiseImageGraph()
Configures and declares concensum matching algorithms
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
PairwiseImageGraph2 |
getGraph() |
int |
getMinimumInliers() |
double |
getRatio3D() |
void |
process(LookupSimilarImages db)
Connects images by testing features for a geometric relationship.
|
void |
setMinimumInliers(int minimumInliers) |
void |
setRatio3D(double ratio3D) |
public PairwiseImageGraph2 graph
public int minimumInliers
public double ratio3D
public GeneratePairwiseImageGraph()
public void process(LookupSimilarImages db)
getGraph()db - Images with feature associationsprotected 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)
src - ID of src imagedst - ID of dst imagepairs - Associated features pixelsmatches - Associated features feature indexespublic PairwiseImageGraph2 getGraph()
public int getMinimumInliers()
public void setMinimumInliers(int minimumInliers)
public double getRatio3D()
public void setRatio3D(double ratio3D)