Example usage for org.opencv.core Core dct

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

Introduction

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

Prototype

public static void dct(Mat src, Mat dst) 

Source Link

Usage

From source file:cx.uni.jk.mms.iaip.mat.CrossMatListener.java

License:Open Source License

/**
 * do the transfer from source to this.target, using DCT or IDCT
 * /*from  ww w.  j a v  a 2 s.c  o  m*/
 * @param source
 */
private void transfer(MatModel source) {
    Mat matSource = source.getMat();
    Mat matTarget = new Mat(matSource.size(), MatModel.MAT_TYPE);
    if (this.inverse) {
        Core.idct(matSource, matTarget);
    } else {
        Core.dct(matSource, matTarget);
    }
    this.target.setMat(matTarget);
}