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

另请参见:
序列化表格

字段摘要
static int idCount
           
 
构造方法摘要
KMeansTree(List<Clusterable> items, int branchFactor, int height, ClusterBuilder clusterer)
          This creates a new tree from the items
 
方法摘要
 List<Integer> addImage(List<? extends Clusterable> imagePoints)
           
 int addPoint(Clusterable point)
           
 int getBranchFactor()
           
 List<KMeansTreeNode> getBreadthWiseList()
           
 List<Float> getCurrentWords()
          Will return the current word in a depth wise search on the tree
 List<KMeansTreeNode> getLeafsList()
           
 int getNumWords()
           
 KMeansTreeNode getRootNode()
           
 int getTreeHeight()
           
 void reset()
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

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.