How Opencv DFT is implemented? [closed]

asked 2018-03-10 01:45:06 -0600

Hello~

I have a question about the cv::DFT function in Opencv , is that how it is implemented? or it according to which algorithm.

because I have a project need to move it to another platform ( which cannot use opencv ) , but when I follow the docs the docs to implement it , and enter the same data, I got the different result as the appendix .

on the left of the pic is the result of cv::DFT , on another side , is the result of mine.

Appendix--

image description

    float data[14* 18] = {
    //0
    1.4013e-45,1.12555e-39,1.66547e-34,5.03909e-30,3.11755e-26,3.94382e-23,1.02015e-20,5.3958e-19,5.83566e-18,1.29053e-17,5.83566e-18,5.3958e-19,1.02015e-20,3.94382e-23,3.11755e-26,5.03909e-30,1.66547e-34,1.12555e-39,
    //1
    4.70598e-41,3.40549e-35,5.03909e-30,1.52465e-25,9.43256e-22,1.19326e-18,3.0866e-16,1.63257e-14,1.76566e-13,3.90468e-13,1.76566e-13,1.63257e-14,3.0866e-16,1.19326e-18,9.43256e-22,1.52465e-25,5.03909e-30,3.40549e-35,
    //2
    2.91147e-37,2.10689e-31,3.11755e-26,9.43256e-22,5.83566e-18,7.38235e-15,1.9096e-12,1.01003e-10,1.09236e-09,2.41571e-09,1.09236e-09,1.01003e-10,1.9096e-12,7.38235e-15,5.83566e-18,9.43256e-22,3.11755e-26,2.10689e-31,
    //3
    3.68313e-34,2.66529e-28,3.94382e-23,1.19326e-18,7.38235e-15,9.33895e-12,2.41571e-09,1.27772e-07,1.38188e-06,3.05597e-06,1.38188e-06,1.27772e-07,2.41571e-09,9.33895e-12,7.38235e-15,1.19326e-18,3.94382e-23,2.66529e-28,
    //4
    9.52711e-32,6.89434e-26,1.02015e-20,3.0866e-16,1.9096e-12,2.41571e-09,6.24874e-07,3.30509e-05,0.000357452,0.00079049,0.000357452,3.30509e-05,6.24874e-07,2.41571e-09,1.9096e-12,3.0866e-16,1.02015e-20,6.89434e-26,
    //5
    5.03909e-30,3.64656e-24,5.3958e-19,1.63257e-14,1.01003e-10,1.27772e-07,3.30509e-05,0.00174813,0.0189064,0.0418107,0.0189064,0.00174813,3.30509e-05,1.27772e-07,1.01003e-10,1.63257e-14,5.3958e-19,3.64656e-24,
    //6
    5.44991e-29,3.94382e-23,5.83566e-18,1.76566e-13,1.09236e-09,1.38188e-06,0.000357452,0.0189064,0.204477,0.452191,0.204477,0.0189064,0.000357452,1.38188e-06,1.09236e-09,1.76566e-13,5.83566e-18,3.94382e-23,
    //7
    1.20522e-28,8.72159e-23,1.29053e-17,3.90468e-13,2.41571e-09,3.05597e-06,0.00079049,0.0418107,0.452191,1,0.452191,0.0418107,0.00079049,3.05597e-06,2.41571e-09,3.90468e-13,1.29053e-17,8.72159e-23,
    //8
    5.44991e-29,3.94382e-23,5.83566e-18,1.76566e-13,1.09236e-09,1.38188e-06,0.000357452,0.0189064,0.204477,0.452191,0.204477,0.0189064,0.000357452,1.38188e-06,1.09236e-09,1.76566e-13,5.83566e-18,3.94382e-23,
    //9
    5.03909e-30,3.64656e-24,5.3958e-19,1.63257e-14,1.01003e-10,1.27772e-07,3.30509e-05,0.00174813,0.0189064,0.0418107,0.0189064,0.00174813,3.30509e-05,1.27772e-07,1.01003e-10,1.63257e-14,5.3958e-19,3.64656e-24,
    //10
    9.52711e-32,6.89434e-26,1.02015e-20,3.0866e-16, 1.9096e-12,2.41571e-09, 6.24874e-07,3.30509e-05,0.000357452,0.00079049,0.000357452,3.30509e-05,6.24874e-07,2.41571e-09,1.9096e-12,  3.0866e-16,1.02015e-20,6.89434e-26,
    //11
    3.68313e-34,2.66529e-28 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2018-03-10 16:57:49.963213

Comments

sorry to say so, but your question will likely not find an answer here

  • if you want to find out how it's implemented: look at the src (it's on github)
  • you neither show your "own code", nor we'll debug it
berak gravatar imageberak ( 2018-03-10 16:57:33 -0600 )edit