android dft()

asked 2014-04-11 05:30:53 -0500

hi everyone, i hv a problem. why i can't use dft function... here is a piece of program i'm use opencv-tutorial-mixed-processing.

    case VIEW_MODE_SALIENCY:
        // input frame has  scale format
        ImgRe = inputFrame.gray();
        //ImgIm = inputFrame.();            
        ImgIm = Mat.zeros(ImgRe.size(), CvType.CV_8U);

        //List<Mat> ImgReImgIm = Arrays.asList(ImgRe, ImgIm);
        //Core.merge(ImgReImgIm, Fourier);
        Core.dft(ImgRe, tmp1, Core.DFT_REAL_OUTPUT, 0);

click saliency item on android and i got hang. . .

edit retag flag offensive close merge delete

Comments

both in and output need to be float type (or double)

berak gravatar imageberak ( 2014-04-11 05:35:57 -0500 )edit