Package jMEF

Examples of jMEF.MultivariateGaussian


  public static MixtureModel loadMixtureModel(String path, BufferedImage image, int n){
    MixtureModel mm = MixtureModel.load(path);
    if (mm==null){
      PVector[]         px       = convertColorImageToPointSet3D(image);
      Vector<PVector>[] clusters = KMeans.run(px, n);
      mm = BregmanSoftClustering.initialize(clusters, new MultivariateGaussian());
      mm = BregmanSoftClustering.run(px, mm);
      MixtureModel.save(mm, path);
    }
    return mm;
  }
View Full Code Here

TOP

Related Classes of jMEF.MultivariateGaussian

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.