Fitxer:Antialiased-sinc.png

El contingut de la pàgina no s'admet en altres llengües.
De la Viquipèdia, l'enciclopèdia lliure

Antialiased-sinc.png(128 × 128 píxels, mida del fitxer: 13 Ko, tipus MIME: image/png)

Descripció a Commons

sinc filter antialiased chessboard


GNU head S'autoritza la còpia, la distribució i la modificació d'aquest document sota els termes de la llicència de documentació lliure GNU versió 1.2 o qualsevol altra versió posterior que publiqui la Free Software Foundation; sense seccions invariants, ni textos de portada, ni textos de contraportada. S'inclou una còpia d'aquesta llicència en la secció titulada GNU Free Documentation License.
w:ca:Creative Commons
reconeixement compartir igual
Aquest fitxer està subjecte a la llicència de Creative Commons Reconeixement i Compartir Igual 3.0 No adaptada.
Sou lliure de:
  • compartir – copiar, distribuir i comunicar públicament l'obra
  • adaptar – fer-ne obres derivades
Amb les condicions següents:
  • reconeixement – Heu de donar la informació adequada sobre l'autor, proporcionar un enllaç a la llicència i indicar si s'han realitzat canvis. Podeu fer-ho amb qualsevol mitjà raonable, però de cap manera no suggereixi que l'autor us dóna suport o aprova l'ús que en feu.
  • compartir igual – Si modifiqueu, transformeu, o generareu amb el material, haureu de distribuir les vostres contribucions sota una llicència similar o una de compatible com l'original
Aquest avís de llicència s'ha afegit a aquest fitxer d'acord amb l'actualització de la llicència GFDL.

If the current image is the same as when I (Loisel 23:40 14 Jul 2003 (UTC)) wrote this comment, the following Matlab code was used to generate the image:

function Z=filteredchessboard(n,a);
foo=(1:n)*128.0/n;
m=size(foo,2);
disp('Initializing X, Y')
for i=1:m
    X(:,i)=(foo-64.0)';
    Y(i,:)=foo;
end
disp('Generating unfiltered chessboard')
T=1.0./(Y/2048.0+0.001);
Z=T.*(X/128.0);
I0=floor(T);
J0=floor(Z);
K=I0+J0;
C=mod(K,2);
disp('Calculating Fhat')
Fhat=fft2(C);
f1=floor(m/a);
f2=n-f1;
f1=f1+1;
f2=f2+1;
disp('Zeroing middle frequencies')
Fhat(f1:f2,:)=0;
Fhat(:,f1:f2)=0;
disp('Inverse Fourier transform & output')
Z=real(ifft2(Fhat));

The returned matrix (e.g. from filteredchessboard(1024,20)) can be viewed with, eg,

image(10*Z')

I then clamped the image like so:

X=max(min(1,Z),0);

in Matlab. Then I took a submatrix of size 128 (e.g., X(1:10:(10*128),1:10:(10*128))) and I wrote it to a file using dlmwrite. Then I wrote a short C program to extract the floating point numbers and convert them into a .pgm file. Lastly, using Gimp, I converted the image to rotate the image 90 degrees and save it to png.

date/time username edit summary
19:21, 22 December 2004 en:User:Quadell (tagged)
00:21, 15 July 2003 en:User:Loisel (updated comments for updated image)
23:40, 14 July 2003 en:User:Loisel (signed)
23:39, 14 July 2003 en:User:Loisel (<tt> -> <pre>)
23:22, 14 July 2003 en:User:Loisel (howto reproduce image)
23:18, 14 July 2003 en:User:Loisel (<a href="/wiki/Sinc_filter" title="Sinc filter">sinc filter</a> antialiased chessboard)

Registre original de càrregues

Legend: (cur) = this is the current file, (del) = delete this old version, (rev) = revert to this old version.

Click on date to download the file or see the image uploaded on that date.

Llegendes

Afegeix una explicació d'una línia del que representa aquest fitxer

Elements representats en aquest fitxer

representa l'entitat

128 píxel

128 píxel

Historial del fitxer

Cliqueu una data/hora per veure el fitxer tal com era aleshores.

Data/horaMiniaturaDimensionsUsuari/aComentari
actual18:53, 18 març 2006Miniatura per a la versió del 18:53, 18 març 2006128 × 128 (13 Ko)MaksimLa bildo estas kopiita de wikipedia:en. La originala priskribo estas: sinc filter antialiased chessboard {{GFDL}} If the current image is the same as when I (Loisel 23:40 14 Jul 2003 (UTC)) wrote this comment, the following Matlab co

La pàgina següent utilitza aquest fitxer:

Ús global del fitxer

Utilització d'aquest fitxer en altres wikis: