enhancementhelp wantedquestion
倉庫指標
- Star
- (6,985 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
This is probably a simple answer but I am new to javacv. I am translating some python to javacv and I am having issues calling the apply2 function of the BestOf2NearestMatcher. I am trying to pass a list of ImageFeatures as the first parameter but I am getting a type mismatch error. The documentation for apply2 says it accepts StdVector opencv_stitching.ImageFeatures. How can I convert my List to properly pass to the apply2 function?
Here is my function
fun matchFeatures(features: List<ImageFeatures>) : MatchesInfo {
var matcher = BestOf2NearestMatcher.create()
var pairwise_matches = MatchesInfo()
matcher.apply2(features, pairwise_matches)
return pairwise_matches
}