Skip to Content
エレガントなSciPy ―Pythonによる科学技術計算
book

エレガントなSciPy ―Pythonによる科学技術計算

by Juan Nunez-Iglesias, Stéfan van der Walt, Harriet Dashnow, 山崎 邦子, 山崎 康宏
November 2018
Intermediate to advanced
272 pages
6h 51m
Japanese
O'Reilly Japan, Inc.
Content preview from エレガントなSciPy ―Pythonによる科学技術計算
96
4 章 周波数と高速フーリエ変換
F_dim = F_dim * peaks.astype(int)
# Do the inverse Fourier transform to get back to an image.
# Since we started with a real image, we only look at the real part of
# the output.
 逆フーリエ変換を行い画像に戻す。実数の画像を基にしたので、出力の実部だけを取り出す。
image_filtered = np.real(fftpack.ifft2(F_dim))
f, (ax0, ax1) = plt.subplots(2, 1, figsize=(4.8, 7))
ax0.imshow(np.log10(1 + np.abs(F_dim)), cmap='viridis')
ax0.set_title('Spectrum after suppression')
ax1.imshow(image_filtered)
ax1.set_title('Reconstructed image');
4.6.2
 窓を掛ける
矩形パルスのフーリエ変換を調べると、スペクトル中にかなりのサイドローブが見えます。
x = np.zeros(500)
x[100:150] = 1
復元された画像
抑制後のスペクトル
4-13
 フィルタをかけた月面上陸の画像とスペクトル
97
4.6 さらなる DFT の概念
X = fftpack.fft(x) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

リーンエンタープライズ ―イノベーションを実現する創発的な組織づくり

リーンエンタープライズ ―イノベーションを実現する創発的な組織づくり

Jez Humble, Joanne Molesky, Barry O'Reilly, 角 征典, 笹井 崇司, Eric Ries
戦略的データサイエンス入門 ―ビジネスに活かすコンセプトとテクニック

戦略的データサイエンス入門 ―ビジネスに活かすコンセプトとテクニック

Foster Provost, Tom Fawcett, 竹田 正和, 古畠 敦, 瀬戸山 雅人, 大木 嘉人, 藤野 賢祐, 宗定 洋平, 西谷 雅史, 砂子 一徳, 市川 正和, 佐藤 正士
アイソモーフィックJavaScript

アイソモーフィックJavaScript

Jason Strimpel, Maxime Najim, 牧野 聡

Publisher Resources

ISBN: 9784873118604Other