Ask Your Question

JiangFeng's profile - activity

2019-01-14 15:01:09 -0600 received badge  Famous Question (source)
2018-11-02 03:29:53 -0600 received badge  Notable Question (source)
2018-11-02 03:29:53 -0600 received badge  Popular Question (source)
2015-08-08 04:34:15 -0600 received badge  Supporter (source)
2015-08-08 03:11:32 -0600 asked a question DFT crop the spectrum due to pad 0

In the opencv_tutorials,the example 2.8 Discrete Fourier Transform we pad the image with 0,when we finish DFT we need to throw away the newly introduced values,but i can not understand this statement "magI = magI(Rect(0, 0, magI.cols & -2, magI.rows & -2));"

can someone explain this to me,Thanks a lot!

image description