{"id":5004,"date":"2020-04-20T17:20:57","date_gmt":"2020-04-20T08:20:57","guid":{"rendered":"http:\/\/aval-global.com\/?p=5004"},"modified":"2025-08-08T14:34:33","modified_gmt":"2025-08-08T05:34:33","slug":"c-fourier-transformfft-dft%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/aval-global.com\/?p=5004&lang=zh","title":{"rendered":"[C#] Fourier transform(FFT, DFT)\u7a0b\u5e8f"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:calc( 1150px + 0px );margin-left: calc(-0px \/ 2 );margin-right: calc(-0px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:0px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:0px;--awb-width-medium:100%;--awb-spacing-right-medium:0px;--awb-spacing-left-medium:0px;--awb-width-small:100%;--awb-spacing-right-small:0px;--awb-spacing-left-small:0px;\"><div class=\"fusion-column-wrapper fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-1\"><p>\u5c3d\u7ba1Excel\u7684\u5b8f\u529f\u80fd\u53ef\u7528\u4e8e\u81ea\u52a8\u8f6c\u6362\u5904\u7406\u5355\u4e2a\u6570\u636e\u7684Fast Fourier Transform (FFT)\u548c Discrete Forier Transform(DFT), \u4f46\u901a\u5e38\u5927\u91cf\u6570\u636e\u5f88\u96be\u5728Excel\u4e2d\u4f7f\u7528, \u8ba9\u6211\u4eec\u4f7f\u7528\u4e00\u4e2a\u5e93(*.dll),\u5e76\u7528C# \u7f16\u5199Fourier transform\u8be5\u5e93\u7684\u7a0b\u5e8f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imagingsolution.net\/wordpress\/wp-content\/uploads\/2020\/01\/FourierTransform_FFT_DFT_1.png\" alt=\"C # \ud478\ub9ac\uc5d0 \ubcc0\ud658 FFT DFT\" \/><\/p>\n<p>\u53ef\u4ee5\u901a\u8fc7\u5355\u673a\u53f3\u4fa7\u94fe\u63a5\u7684Zip\u6587\u4ef6\u5e76\u5355\u51fb &#8220;<a href=\"https:\/\/imagingsolution.net\/wordpress\/wp-content\/uploads\/2020\/01\/FourierTransform.zip\" target=\"_blank\" rel=\"noopener noreferrer\" data-token-index=\"1\" data-reactroot=\"\">FourierTransform.zip<\/a> &#8221; \u6765\u4e0b\u8f7d\u53ef\u6267\u884c\u7684\u7a0b\u5e8f\u3002<br \/>\n\u6240\u6709\u6e90\u4ee3\u7801\u90fd\u53d1\u5e03\u5728\u4e0b\u9762\u7684 GitHub \u94fe\u63a5\u91cc\u3002<br \/>\n<a href=\"https:\/\/github.com\/ImagingSolution\/FourierCSharp\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/ImagingSolution\/FourierCSharp<\/a><\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5\u8bf4\u660e\u5982\u4e0b\u3002<\/p>\n<h2><strong>\u8fd0\u884c\u7a0b\u5e8f<\/strong><\/h2>\n<p>\u5982\u679c\u60a8\u89e3\u538b\u7f29\u4e0a\u9762\u94fe\u63a5\u7684zip\u6587\u4ef6\uff0c<\/p>\n<ul>\n<li>FourierTransform.exe<\/li>\n<li>FourierCSharp.dll<\/li>\n<li>sampledata<\/li>\n<\/ul>\n<p>\u4f1a\u6709\u8fd9\u51e0\u4e2a\u6587\u4ef6\uff0c\u53cc\u51fb FourierTransform.exe\u6765\u8fd0\u884c\u3002<\/p>\n<h2><\/h2>\n<h2><strong>Fourier Transform\u53ef\u7528\u7684\u6570\u636e\u683c\u5f0f<\/strong><\/h2>\n<p>\u6570\u636e\u662fCSV\u6587\u4ef6\uff0c\u6bcf\u884c\u4e00\u4e2a\u6570\u636e\u3002<\/p>\n<p>Sample 01)<\/p>\n<p>1<br \/>\n1.30939551<br \/>\n1.59096344<br \/>\n1.820538079<br \/>\n1.980767038<br \/>\n2.06331351<br \/>\n2.069803727<br \/>\n2.01139008<br \/>\n1.906994542<br \/>\n1.780482109<br \/>\n1.65716389<br \/>\n1.560123288<br \/>\n1.506883103<br \/>\n1.506883103<br \/>\n1.560123288<\/p>\n<p>\u5982\u679c\u8f93\u5165\u6570\u636e\u5305\u542b\u5b9e\u6570\u548c\u865a\u6570\u4f1a\u6210\u4e3a<span data-token-index=\"1\" data-reactroot=\"\"><span style=\"color: #0000ff;\">\u5b9e\u6570\u90e8\u5206<\/span>,<span style=\"color: #0000ff;\"> \u865a\u6570\u90e8\u5206\u3002<\/span><\/span><\/p>\n<p>Sample 02)<\/p>\n<p>50, 0<br \/>\n0, -25<br \/>\n0, 0<br \/>\n0, -12.5<br \/>\n0, 0<br \/>\n0, 0<\/p>\n<p>\u6709\u5173\u793a\u4f8b\u6570\u636e\uff0c\u8bf7\u53c2\u9605\u672c\u90e8\u5206\uff0c\u56e0\u4e3aCSV\u6587\u4ef6\u5b58\u50a8\u5728zip\u6587\u4ef6\u7684sampledata\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n<h2><strong>\u83b7\u53d6\u6570\u636e<\/strong><\/h2>\n<p>\u901a\u8fc7\u5355\u51fb\u83dc\u5355\u4e2d\u7684File \u2192 LoadData\u5e76\u6307\u5b9a CSV\u6587\u4ef6\uff0c\u5c06\u83b7\u53d6\u6570\u636e\u5e76\u663e\u793a Fourier Transform \u7ed3\u679c (Fourier Transform \u540e\u6bcf\u4e2a\u9891\u7387\u7684\u5927\u5c0f)\u3002<br \/>\nFourier Transform\u5728\u4ee5\u4e0b\u60c5\u51b5\uff1a\u6570\u636e\u6570\u662f2\u7684n\u6b21\u65b9\uff1aFFT\uff0c\u5176\u4f59\u7684\u60c5\u51b5\uff1a\u6267\u884cDFT\u3002<\/p>\n<p><img decoding=\"async\" class=\"size-800 wp-image-4983 alignnone\" src=\"https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/Graph_en-800x580.jpg\" alt=\"\" width=\"800\" height=\"580\" srcset=\"https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/Graph_en-200x145.jpg 200w, https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/Graph_en-300x218.jpg 300w, https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/Graph_en-400x290.jpg 400w, https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/Graph_en-600x435.jpg 600w, https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/Graph_en-768x557.jpg 768w, https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/Graph_en-800x580.jpg 800w, https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/Graph_en.jpg 859w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<h2><strong>DFT, IDFT\u7684\u53d8\u6362<\/strong><\/h2>\n<p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u5355\u51fb\u83dc\u5355\u4e2d\u7684Fourier direction \u2192 Forward\u6216Backward\u6765\u8f6c\u6362DFT\u548cIDFT\u3002<\/p>\n<p>DFT\u662f,<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/dft.png\" \/><\/p>\n<p>IDFT\u662f,<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/idft.png\" \/><\/p>\n<p>\u6765\u8ba1\u7b97\u3002<\/p>\n<h2><strong>\u7a97\u53e3\u51fd\u6570<\/strong><\/h2>\n<p>\u901a\u8fc7\u4ece\u83dc\u5355\u4e2d\u5355\u51fb Window\u2192 Hamming, Hanning, Blackman\u4e4b\u4e00\u6765\u5e94\u7528\u6bcf\u4e2a\u7a97\u53e3\u51fd\u6570\u3002<br \/>\n(<span style=\"color: #ff0000;\" data-token-index=\"1\" data-reactroot=\"\">\u6ce8\u610f<\/span>) \u5982\u679c\u5e94\u7528\u4e86\u7a97\u53e3\u529f\u80fd\uff0c\u5219\u65e0\u6cd5\u8fd4\u56de\u5230\u539f\u59cb\u6570\u636e\uff0c\u5982\u679c\u9700\u8981\u73b0\u6709\u6570\u636e\uff0c\u8bf7\u518d\u6b21\u52a0\u8f7d\u8be5\u6570\u636e\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/chang.png\" \/><\/p>\n<p><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2193\u3000\u5e94\u7528\u7a97\u53e3\u51fd\u6570<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/aval-global.com\/wp-content\/uploads\/2020\/04\/chang2.png\" \/><\/p>\n<h2><strong>[\u6ce8\u610f\u4e8b\u9879]<\/strong><\/h2>\n<p>\u672c\u535a\u5ba2\u4e2d\u516c\u5f00\u7684\u6240\u6709\u7a0b\u5e8f\u5747\u53ef\u514d\u8d39\u4f7f\u7528\uff0c\u4f46\u4f7f\u7528\u524d\u8bf7\u52a1\u5fc5\u5c0f\u5fc3\uff0c\u56e0\u4e3a\u6211\u4eec\u5bf9\u7531\u9519\u8bef\u5f15\u8d77\u7684\u95ee\u9898\u4e0d\u627f\u62c5\u4efb\u4f55\u8d23\u4efb\u3002<\/p>\n<\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":5000,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[245],"tags":[258],"class_list":["post-5004","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-cn","tag-c-zh"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/aval-global.com\/index.php?rest_route=\/wp\/v2\/posts\/5004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aval-global.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aval-global.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aval-global.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/aval-global.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5004"}],"version-history":[{"count":5,"href":"https:\/\/aval-global.com\/index.php?rest_route=\/wp\/v2\/posts\/5004\/revisions"}],"predecessor-version":[{"id":11610,"href":"https:\/\/aval-global.com\/index.php?rest_route=\/wp\/v2\/posts\/5004\/revisions\/11610"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aval-global.com\/index.php?rest_route=\/wp\/v2\/media\/5000"}],"wp:attachment":[{"href":"https:\/\/aval-global.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aval-global.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aval-global.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}