-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
マッチングに使用した特徴点を後で確認できるようにするために元画像と白黒画像、特徴点データもデータとして保持するように修正した。 see #24
- Loading branch information
Showing
3 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
webapps/Recognition-Tester/src/main/java/imgrecognition/Feature.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package imgrecognition; | ||
import org.opencv.core.Mat; | ||
import org.opencv.core.MatOfKeyPoint; | ||
|
||
public class Feature { | ||
public final Mat srcImage; | ||
public final Mat grayImage; | ||
public final Mat descriptors; | ||
MatOfKeyPoint keyPoints = new MatOfKeyPoint(); | ||
|
||
public Feature(Mat srcImage, Mat grayImage, MatOfKeyPoint keyPoints, Mat descriptors) { | ||
this.srcImage = srcImage; | ||
this.grayImage = grayImage; | ||
this.keyPoints = keyPoints; | ||
this.descriptors = descriptors; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters