所以在我的情况下,我应该向 computeQuantisedFeatures 方法提供两个参数,第二个是类型
List<LocalFeature<Location, ? extends ArrayFeatureVector<byte[]>>>
我尝试传递我的类型的 imagekeypoints 列表
LocalFeatureList<Keypoint>
并且
List<LocalFeature<KeypointLocation, ByteFV>> features = null;
for (java.util.Iterator<Keypoint> iter = imageKeypoints.iterator(); iter.hasNext();)
{features.add((LocalFeature<KeypointLocation, ByteFV>)iter.next());}
但我总是得到著名的错误
The method computeQuantisedFeatures(HardAssigner<T,?,?>, List<LocalFeature<L,?
extends ArrayFeatureVector<T>>>) in the type BagOfVisualWords is not applicable for
the arguments (HardAssigner<byte[],capture#3-of ?,capture#4-of ?>,
List<LocalFeature<KeypointLocation,ByteFV>>)