フィルターのクリア

create parallel lines in the same pic and find the average of all the ffts in it

3 ビュー (過去 30 日間)
george korris
george korris 2021 年 4 月 4 日
コメント済み: Matt J 2021 年 4 月 7 日
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?

採用された回答

Matt J
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 件のコメント
george korris
george korris 2021 年 4 月 7 日
編集済み: george korris 2021 年 4 月 7 日
sorry to bother you again matt but when using that comand where you calculate the fft of the rotated image is it calculating the fft of the background black pixels that imrotate creates or is it taking into considaration only the pixels of the image?
Matt J
Matt J 2021 年 4 月 7 日
It is taking the FFT of the average row. The averaging does not distinguish between foreground and background.

サインインしてコメントする。

その他の回答 (1 件)

Matt J
Matt J 2021 年 4 月 5 日
The operation sounds the same, up to a scale factor, as doing
fft(radon(yourImage,theta))
  2 件のコメント
george korris
george korris 2021 年 4 月 5 日
thank you so much Matt for your answer , so this line is calxulating all the ffts of the lines in a specific angle theta?
Matt J
Matt J 2021 年 4 月 5 日
It is summing along a direction theta, then taking the fft, but that is essentially the same thing.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Mobile Fundamentals についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by