Example usage for org.opencv.core Core PCACompute

List of usage examples for org.opencv.core Core PCACompute

Introduction

In this page you can find the example usage for org.opencv.core Core PCACompute.

Prototype

public static void PCACompute(Mat data, Mat mean, Mat eigenvectors, int maxComponents) 

Source Link

Usage

From source file:ch.zhaw.facerecognitionlibrary.Recognition.Eigenfaces.java

License:Open Source License

private void computeEigVectors() {
    SharedPreferences sharedPref = PreferenceManager
            .getDefaultSharedPreferences((context.getApplicationContext()));
    float pca_threshold = Float.valueOf(sharedPref.getString("key_pca_threshold", "0.98f"));
    Core.PCACompute(Phi, Psi, eigVectors, pca_threshold);
}