Usages of

org.openimaj.feature.local.matcher.FastBasicKeypointMatcher.getMatches()
public static void main(String[] args) throws IOException { final FImage image1 = ImageUtilities.readF(new URL( "http://punch-records.co.uk/files/2013/01/Coca-cola-logo-eps-vector-nocturnar-com.jpg")); final FImage image2 = ImageUtilities .readF(new URL( "http://i133.photobucket.com/albums/q78/KylePix/Car%20Shows%20and%20Races/Los%20Angeles%2011/111124-4937CocaColaMotorcycle.jpg")); final DoGSIFTEngine engine = new DoGSIFTEngine(); engine.getOptions().setDoubleInitialImage(true); final LocalFeatureList<Keypoint> keys1 = engine.findFeatures(image1); final LocalFeatureList<Keypoint> keys2 = engine.findFeatures(image2); final FastBasicKeypointMatcher<Keypoint> matcher = new FastBasicKeypointMatcher<Keypoint>(6); matcher.setModelFeatures(keys1); matcher.findMatches(keys2); final List<Pair<Keypoint>> matches = filterDuplicatePoints(matcher.getMatches()); DisplayUtilities.display(MatchingUtilities.drawMatches(image1, image2, matches, 0F)); final DTConsistencyInfo info = DTConsistency.computeTriangulationInfo(matches); final MBFImage i1 = MBFImage.createRGB(image2); final MBFImage i2 = MBFImage.createRGB(image1); i1.drawLines(info.firstCommonEdges, 5, RGBColour.BLUE); i2.drawLines(info.secondCommonEdges, 5, RGBColour.BLUE); for (final Shape s : info.firstTrianglulation) i1.drawShape(s, RGBColour.RED); for (final Shape s : info.secondTrianglulation) i2.drawShape(s, RGBColour.RED); DisplayUtilities.display(i1); DisplayUtilities.display(i2); }
Usage snippet has been bookmarked! Review your bookmarks
Thank you! Review your likes