List of usage examples for org.opencv.core Core dct
public static void dct(Mat src, Mat dst)
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); }