ファイル:Dandelion_clock_quarter_dft_dct.png
[Wikipedia|▼Menu]

ファイル

ファイルの履歴

ファイルの使用状況

グローバルなファイル使用状況
このプレビューのサイズ: 478 × 599 ピクセル。 その他の解像度: 191 × 240 ピクセル 。383 × 480 ピクセル 。613 × 768 ピクセル 。1,140 × 1,428 ピクセル。

元のファイル ‎(1,140 × 1,428 ピクセル、ファイルサイズ: 542キロバイト、MIME タイプ: image/png)



このファイルは、ウィキメディア・コモンズから呼び出されています。

このファイルは、他のプロジェクトで使用されている可能性があります。

このファイルの解説やノートへの記入、履歴などの詳細の確認は、ウィキメディア・コモンズのファイルページ(ノート/履歴/ログ)を使用してください。
ウィキメディア・コモンズのファイルページにある説明を、以下に表示します。

概要

解説Dandelion clock quarter dft dct.pngthe picture shows the difference between the DFT and a DCT of an image
日付2006年5月13日
原典I made it by myself
作者Alessio Damato
許可
(ファイルの再利用
)multilicensed (see below)
その他のバージョンthe original image that was processed was Image:Dandelion_clock.jpg

I used Image:Dandelion_clock.jpg to create this image. I wanted to show clearly the different behavior between the DFT and the DCT in the frequency domain.

The pictures are made of other figures. The first one on the top is just the original image: I used its gray-scale version.On the second line there is the DFT: its magnitude on the left, its histogram on the right.On the third line there is the DCT, with both magnitude and histogram.

The spectrum of the DFT has cropped so that the lowest frequencies are on the top-left of the picture, just like in the DCT.It is not such a rigorous process: the DFT in general is composed of two symmetric halves, but I put on the picture just one quarter, thus removing one quarter of necessary information. I did so to create an output that could be easily be compared with the DCT. Because of symmetry, I cropped to 1/4 the DCT as well, keeping the lower frequencies. Anyway it is clear how the DCT concentrates most of the energy into the lowest frequencies.

I created the single images with the following Matlab code:% read the imageRGB = imread('Dandelion_clock.jpg');% convert pixels to the [0 1] rangeRGB = im2double(RGB);% convert to grayscaleI = rgb2gray(RGB);% calculate the size of the image and then divide% by two, in order to crop it later[X Y] = size(I);Y = round(Y/2);X = round(X/2);% evaluate magnitude of the DFTF = abs(fft2(I));% take only a quarterF = imcrop(F,[0 0 Y X]);% use log scaleF = log(1 + F);F = log(1 + F);% normalizeF = F/max(F(:));% evaluate magnitude of the DCTC = abs(dct2(I));% take only a quarterC = imcrop(C,[0 0 Y X]);% use log scaleC = log(1 + C);C = log(1 + C);% normalizeC = C/max(C(:));% show all the resultsimshow(F), colorbar, colormap(jet);figure, imhist(F);figure, imshow(C), colorbar, colormap(jet);figure, imhist(C);

First it imports the RGB image and converts it to gray-scale.Then calculates the magnitude of both the transforms. Both pictures had a huge dynamic, so I calculated the logarithm of both, twice, in order to be able to show the transforms properly.Once all the pictures were shown on the screen, I just selected File -> Save as on Matlab to save all the pictures.I put them all together using Gimp.

(comment by RCL) I cant speak english very well, but I'm going to try it. The use of this code it's WRONG, we can't use this MATLAB code for comparing both transforms, because in MATLAB the definition of the DFT isn't normalized and the definition of the DCT in MATLB it's normalized. So we should multiply the result of the fft by a factor of 1.0/N2, before we use the function abs. The result between the DFT and the DCT is very similar if we do this, but we can obtain the shannon entropy of the energy of both transforms and the result is that the entropy of the energy in the DCT is lower than the DFT, for that reason we say that the DCT compact the energy more than the DFT. I made my master thesis on the DCT.
ライセンスこの作品の著作権者である私は、この作品を以下のライセンスで提供します。

この文書は、フリーソフトウェア財団発行のGNUフリー文書利用許諾書 (GNU Free Documentation License) 1.2またはそれ以降のバージョンの規約に基づき、複製や再配布、改変が許可されます。不可変更部分、表紙、背表紙はありません。このライセンスの複製は、GNUフリー文書利用許諾書という章に含まれています。http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue


このファイルはクリエイティブ・コモンズ 表示-継承 3.0 非移植ライセンスのもとに利用を許諾されています。

あなたは以下の条件に従う場合に限り、自由に

共有 ? 本作品を複製、頒布、展示、実演できます。

再構成 ? 二次的著作物を作成できます。
あなたの従うべき条件は以下の通りです。

表示 ? あなたは適切なクレジットを表示し、ライセンスへのリンクを提供し、変更があったらその旨を示さなければなりません。これらは合理的であればどのような方法で行っても構いませんが、許諾者があなたやあなたの利用行為を支持していると示唆するような方法は除きます。

継承 ? もしあなたがこの作品をリミックスしたり、改変したり、加工した場合には、あなたはあなたの貢献部分を元の作品とこれと同一または互換性があるライセンスの下に頒布しなければなりません。

このライセンスのテンプレートは、GFDLのライセンス・アップデートによりこのファイルに追加されたものです。http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue
.mw-parser-output .responsive-license-cc{clear:both;text-align:center;box-sizing:border-box;width:100%;justify-content:space-around;align-items:center;margin:0.5em auto;background-color:#f9f9f9;border:2px solid #e0e0e0;border-spacing:8px;display:flex}.mw-parser-output .responsive-license-cc div{margin:4px}.mw-parser-output .rlicense-text div{margin:0.5em auto}@media screen and (max-width:640px){.mw-parser-output .responsive-license-cc{flex-flow:column}.mw-parser-output .rlicense-text{order:1}}
このファイルはクリエイティブ・コモンズ 表示-継承 2.5 一般、2.0 一般、1.0 一般のライセンスのもとに利用を許諾されています。あなたは以下の条件に従う場合に限り、自由に

共有 ? 本作品を複製、頒布、展示、実演できます。

再構成 ? 二次的著作物を作成できます。
あなたの従うべき条件は以下の通りです。

表示 ? あなたは適切なクレジットを表示し、ライセンスへのリンクを提供し、変更があったらその旨を示さなければなりません。これらは合理的であればどのような方法で行っても構いませんが、許諾者があなたやあなたの利用行為を支持していると示唆するような方法は除きます。

継承 ? もしあなたがこの作品をリミックスしたり、改変したり、加工した場合には、あなたはあなたの貢献部分を元の作品とこれと同一または互換性があるライセンスの下に頒布しなければなりません。
https://creativecommons.org/licenses/by-sa/2.5CC BY-SA 2.5 Creative Commons Attribution-Share Alike 2.5 truetrueあなたは上記のライセンスから、どれか一つ以上を選択できます。

キャプション日本語このファイルの内容を1行で記述してください
このファイルに描写されている項目
題材
\u8457\u4f5c\u6a29\u306e\u72b6\u6cc1"}},"text\/plain":{"ja":{"":"\u8457\u4f5c\u6a29\u306e\u72b6\u6cc1"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":50423863,\"id\":\"Q50423863\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"ja":{"P6216":"\u8457\u4f5c\u6a29\u3067\u4fdd\u8b77"}},"text\/plain":{"ja":{"P6216":"\u8457\u4f5c\u6a29\u3067\u4fdd\u8b77"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P6216 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
著作権の状況

著作権で保護\u5229\u7528\u8a31\u8afe"}},"text\/plain":{"ja":{"":"\u5229\u7528\u8a31\u8afe"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":14946043,\"id\":\"Q14946043\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"ja":{"P275":"CC BY-SA 3.0 \u975e\u79fb\u690d"}},"text\/plain":{"ja":{"P275":"CC BY-SA 3.0 \u975e\u79fb\u690d"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":19113751,\"id\":\"Q19113751\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"ja":{"P275":"CC BY-SA 2.5 \u4e00\u822c"}},"text\/plain":{"ja":{"P275":"CC BY-SA 2.5 \u4e00\u822c"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":19068220,\"id\":\"Q19068220\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"ja":{"P275":"CC BY-SA 2.0 \u4e00\u822c"}},"text\/plain":{"ja":{"P275":"CC BY-SA 2.0 \u4e00\u822c"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":50829104,\"id\":\"Q50829104\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"ja":{"P275":"GNU Free Documentation License\u30d0\u30fc\u30b8\u30e7\u30f31.2\u304b\u305d\u308c\u4ee5\u964d"}},"text\/plain":{"ja":{"P275":"GNU Free Documentation License\u30d0\u30fc\u30b8\u30e7\u30f31.2\u304b\u305d\u308c\u4ee5\u964d"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":47001652,\"id\":\"Q47001652\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"ja":{"P275":"Creative Commons Attribution-ShareAlike 1.0 Generic\u00a0\u82f1\u8a9e"}},"text\/plain":{"ja":{"P275":"Creative Commons Attribution-ShareAlike 1.0 Generic"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P275 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">


次ページ
記事の検索
おまかせリスト
▼オプションを表示
ブックマーク登録
mixiチェック!
Twitterに投稿
オプション/リンク一覧
話題のニュース
列車運行情報
暇つぶしWikipedia

Size:13 KB
出典: フリー百科事典『ウィキペディア(Wikipedia)
担当:undef