Example usage for org.opencv.core Core idct

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

Introduction

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

Prototype

public static void idct(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 w w w. j a  v  a 2s  .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);
}