com.alibaba.simpleimage.analyze.search.tree
类 KMeansTree
java.lang.Object
com.alibaba.simpleimage.analyze.search.tree.KMeansTree
- 所有已实现的接口:
- VocabularyTree, Serializable
public class KMeansTree
- extends Object
- implements VocabularyTree, Serializable
- 另请参见:
- 序列化表格
idCount
public static int idCount
KMeansTree
public KMeansTree(List<Clusterable> items,
int branchFactor,
int height,
ClusterBuilder clusterer)
- This creates a new tree from the items
- 参数:
items - branchFactor - leafNodeCapacity -
getBranchFactor
public int getBranchFactor()
getNumWords
public int getNumWords()
getBreadthWiseList
public List<KMeansTreeNode> getBreadthWiseList()
getLeafsList
public List<KMeansTreeNode> getLeafsList()
addImage
public List<Integer> addImage(List<? extends Clusterable> imagePoints)
- 指定者:
- 接口
VocabularyTree 中的 addImage
addPoint
public int addPoint(Clusterable point)
getCurrentWords
public List<Float> getCurrentWords()
- Will return the current word in a depth wise search on the tree
- 指定者:
- 接口
VocabularyTree 中的 getCurrentWords
reset
public void reset()
- 指定者:
- 接口
VocabularyTree 中的 reset
getTreeHeight
public int getTreeHeight()
getRootNode
public KMeansTreeNode getRootNode()
Copyright © 2012–2015 Alibaba Group. All rights reserved.