create parallel lines in the same pic and find the average of all the ffts in it
8 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone i have a code which draws a line in a pic and takes the fft of the profile of the line,does anyone know how can i take multiple parallel lines to the original line and find the ffts of all the profiles of the pixels and find the averge fft?
0 件のコメント
採用された回答
Matt J
2021 年 4 月 5 日
編集済み: Matt J
2021 年 4 月 5 日
Could you imrotate() the image so that it's rows are parallel to your line? Then, the operation would reduce to
fft( mean( imrotate(yourImage,angle) ,1) )
8 件のコメント
Matt J
2021 年 4 月 7 日
It is taking the FFT of the average row. The averaging does not distinguish between foreground and background.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!