From 319b6a447ff4df802a0f8727a9206cb5645c742e Mon Sep 17 00:00:00 2001 From: Dmitry Melnichenko Date: Thu, 3 Sep 2015 17:16:59 +0300 Subject: [PATCH] Change SURF to ORB in Java-Sbt sample to remove dependency on external non-free modules --- .../src/main/scala/ScalaCorrespondenceMatchingDemo.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/java/sbt/src/main/scala/ScalaCorrespondenceMatchingDemo.scala b/samples/java/sbt/src/main/scala/ScalaCorrespondenceMatchingDemo.scala index e8259827a..47eae3157 100644 --- a/samples/java/sbt/src/main/scala/ScalaCorrespondenceMatchingDemo.scala +++ b/samples/java/sbt/src/main/scala/ScalaCorrespondenceMatchingDemo.scala @@ -21,8 +21,8 @@ object ScalaCorrespondenceMatchingDemo { def detectAndExtract(mat: Mat) = { // A special container class for KeyPoint. val keyPoints = new MatOfKeyPoint - // We're using the SURF detector. - val detector = FeatureDetector.create(FeatureDetector.SURF) + // We're using the ORB detector. + val detector = FeatureDetector.create(FeatureDetector.ORB) detector.detect(mat, keyPoints) println(s"There were ${keyPoints.toArray.size} KeyPoints detected") @@ -34,8 +34,8 @@ object ScalaCorrespondenceMatchingDemo { // arguments. val bestKeyPoints: MatOfKeyPoint = new MatOfKeyPoint(sorted: _*) - // We're using the SURF descriptor. - val extractor = DescriptorExtractor.create(DescriptorExtractor.SURF) + // We're using the ORB descriptor. + val extractor = DescriptorExtractor.create(DescriptorExtractor.ORB) val descriptors = new Mat extractor.compute(mat, bestKeyPoints, descriptors)