public class KeypointCorrespondenceTestHelper extends Object
Constructor and Description |
---|
KeypointCorrespondenceTestHelper() |
Modifier and Type | Method and Description |
---|---|
static float |
correspondance(List<Pair<Keypoint>> matches,
Jama.Matrix transform)
Provide simplistic check of correspondence between the keypoints extracted and a given transform.
|
static float |
correspondance(List<Pair<Keypoint>> matches,
Jama.Matrix transform,
float scaleThreshold)
Provide simplistic check of correspondence between the keypoints extracted and a given transform.
|
static Jama.Matrix |
generateMildTransform(FImage image)
Generate an affine transform between some reasonable limits:
- Rotate it between 0 and 360
- transform it between 0 and 10 pixels
- slant it (sheer in x and y) between 0 and 10 degrees
- scale it between 0 and 2.0 times
|
static Jama.Matrix |
generateMildTransform(FImage image,
Random seed)
Generate an affine transform between some reasonable limits:
- Rotate it between 0 and 360
- transform it between 0 and 10 pixels
- slant it (sheer in x and y) between 0 and 10 degrees
- scale it between 0 and 2.0 times
|
public KeypointCorrespondenceTestHelper()
public static Jama.Matrix generateMildTransform(FImage image)
image
- the image on which to generate the transformpublic static Jama.Matrix generateMildTransform(FImage image, Random seed)
image
- the image on which to generate the transformseed
- the random seed against which to generate the random mild transformspublic static float correspondance(List<Pair<Keypoint>> matches, Jama.Matrix transform)
LocalFeatureMatcher
for better implementations for that purpose.matches
- list of keypoint matchestransform
- the supposed transform appliedpublic static float correspondance(List<Pair<Keypoint>> matches, Jama.Matrix transform, float scaleThreshold)
LocalFeatureMatcher
for better implementations for that purpose.matches
- list of keypoint matchestransform
- the supposed transform appliedscaleThreshold
- The allowable scale shift between two keypoints