what is the time complexity
1 view (last 30 days)
Show older comments
if i will depend on fft2 for calculating weighted mean and variance of image and i will do that several times with a for loop, what will be the time complexity?? will it be O(kNlog_2(N)) where N is the image size and k is the no of times of for loop ??
0 Comments
Accepted Answer
Walter Roberson
on 19 Sep 2015
Edited: Walter Roberson
on 19 Sep 2015
O(k*N^2*log2(N))
for square matrices.
http://fourier.eng.hmc.edu/e101/lectures/Image_Processing/node6.html and look for "Matrix Form of 2D DFT"
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!