Friday, March 30. 2007Haft, II![]()
Die Köchin befindet sich in Schmackhaft. Thursday, March 29. 2007Oh no! The eighties are back!![]() ![]()
Posted by Stephan Paukner
in Curiosities
at
15:13
| Comments (0)
| Trackbacks (0)
Defined tags for this entry: fashion
Tuesday, March 27. 2007Raising questions, 70-73![]()
I noticed that I’ll have to find a representation of images as vectors, and not as matrices as usual. Because otherwise I won’t be able to describe linear operations as matrices on vectors. To be able to do things like an SVD or a look at eigenvalues or eigenvectors, I’ll have to evaluate matrices on vectors. For building lattices or Gabor systems I’ll have to try to use the algorithms which have been developed for 1D-signals. This leads me to Gabor Analysis on locally compact abelian groups, but group theory is a little bit away from ordinary signal analysis. Reading first intros, I asked myself:
Posted by Stephan Paukner
in Master's Thesis
at
10:29
| Comments (0)
| Trackback (1)
Defined tags for this entry: mathematics
Sunday, March 18. 2007Schwarzfahren kann sich unmöglich auszahlen![]()
Ich kenne jemanden, der/die darauf spekuliert, dass das regelmäßige Zahlen der Strafen fürs Schwarzfahren in Summe billiger kommt als die Jahreskarte der Wiener Linien. Diese kostet bei Teilzahlung €417/Jahr, und einmal beim Schwarzfahren erwischt werden kostet €60. Damit darf man höchstens sechs Mal im Jahr erwischt werden. Ich bin aber seit Jänner 2007 schon vier Mal kontrolliert worden. Wenn der Trend so weitergeht, bin ich bis Jahresende 16 Mal kontrolliert worden und hätte €960 hingeblättert. Die erstgenannte Spekulation kann also nur funktionieren wenn er/sie nur selten und/oder nur zu “exotischen” Uhrzeiten fährt.
Posted by Stephan Paukner
in Personal
at
13:28
| Comments (0)
| Trackbacks (0)
Defined tags for this entry: german
Thursday, March 15. 2007Convolving a zebra with modulated Gaussians![]() I finally managed to scale the reconstructed images appropriately such that one can see at what locations certain 2D-frequencies occur. I FT’ed an image of a zebra and “windowed” the FT with a shifted Gaussian. Doing the inverse FT of that cutout yields a convolution of the input image with a modulated Gaussian, corresponding to
This is the zebra, a 480×480 pixel sample I clipped from an image I found in the Wikimedia Commons, and its FFT2:
Again, I rotated the image of the FT by 90° to match the orientation of the “jets” with the line patterns in the zebra. Clearly, the vertically oriented frequencies dominate the image. Now I window the FT-image by placing a Gaussian at the origin. This results in a low-pass filter. The IFT gives a reconstructed image which only contains the lowest frequencies:
The left half shows the (unmodulated) Gaussian with which the original image has been convolved. The right half shows the reconstructed image—the animal has lost all its zebra patterns! This effect is identical to a Gaussian blur. Continue reading "Convolving a zebra with modulated Gaussians"
Posted by Stephan Paukner
in Master's Thesis
at
18:13
| Comments (0)
| Trackback (1)
Defined tags for this entry: mathematics
Wednesday, March 14. 2007Time-frequency shifts of a 2D-Gaussian (Addendum)![]() I found out that the mentioned symmetry on the FFT2-picture occurs because the modulation in the input image only has a real part and no imaginary part. If one looks at fft2(real(Mg)) where Mg is a modulated Gaussian, one really gets two symmetrically shifted Gaussians as output. And the Gaussian in the center still comes up because the line patterns don’t span completely between -1 (black) and 1 (white). I also found a bump2d.m in the NuHAG toolbox which incorporates gaussnk.m, so I can trash my gauss2.m-attempt.
Posted by Stephan Paukner
in Master's Thesis
at
12:01
| Comments (0)
| Trackbacks (0)
Defined tags for this entry: mathematics
Monday, March 12. 2007Time-frequency shifts of a 2D-Gaussian![]()
The modulated Gaussian I showed previously was just illustratory and did not consider mathematical properties such as FT-invariance. For that, it has to be periodized, normalized and centered at the borders. The MATLAB script gaussnk.m by N. Kaiblinger from the NuHAG toolbox implements this by evaluating the Gauss function on a wider interval and then wrapping it into the desired signal length. I tried to do that for the 2D case, but here I’m not sure about the term “signal length”, it should actually be the number of pixels. I wrote a first gauss2.m which creates a 2D-Gaussian on a square with almost all desired properties. However, the normalization seems to be wrong, as it does not fulfill What I was trying to do was doing localized FFT2’s on a test image. I shifted an arbitrarily selected Gaussian like a spotlight aver an image and did FFT2’s of that. However, on white walls the result didn’t show the desired FT-invariance of the Gaussian. So I had to think of the aforementioned normalizing tasks. Then I was confused that shifts of a Gaussian actually result in modulations on the FT-side. But shouldn’t we want to stay the FT all the same while shifting the Gaussian over a white wall in the input image (and having an unchanged Gaussian at every spot)? Yes, but only as long as we don’t want to be able to invert the FT! Here, we’d need the modulations to get back to the corresponding shifts on the input image. So, if only the spectra are interesting, one should look at the absolute values of the FT which will make the modulation factors disappear (because they have an absolute value of 1). Another thing I came over was this; look at the following example image: On the left half is the input, and the right half shows the absolute values of the FFT2. The input almost looks like a modulated Gaussian. Why doesn’t it simply shift on the output image? Because in the input, the black values of the surroundings match the black values of the line pattern! If the input should represent a modulated Gaussian, the black lines should have value -1, and the surroundings a gray level of 0. I’ll correct this soon.
![]() ![]() I like to rotate the output by 90° to match the orientation of the shifts with that of the lines in the input. Notice that I shifted the mid tones in the output image and that I always get another Gaussian in the center. This is the one I have to get rid of. Also, I get some kind of symmetry, the cause of which I haven’t found out yet but might also be due to the scaling issue. For that, I visualized the TF- and FT-behavior of my 2D-Gaussian: Continue reading "Time-frequency shifts of a 2D-Gaussian" Saturday, March 10. 2007Modulating a 2D-Gaussian![]() I tell a little about what I did with Octave during the last days. This is the first part and it's about creating a video of a modulated Gaussian. The second part is about doing FFT's of time-frequency shifted Gaussians. I figured out how to merge images into a video stream. I rely on Linux tools rather than trying to do it from within Octave, because I don't know whether libraries for creating videos are somehow available there. However, I wrote an M-file which creates images of a modulated 2D-Gaussian. The 2D-frequency changes by going on a spiral in the complex plane starting from the origin. This yields a modulation which is rotating while the line-pattern gets narrower: I merged the bunch of 900 images to a video by using MEncoder, the open-source encoder from the MPlayer suite. I did it this way:
CODE: $ mencoder mf://out*png -ovc lavc -mf fps=25 -o rotgauss.avi
I know, the usage of a proprietary container format is a contradiction to using open-source tools, but I only want to care about such details later. I won't publish the M-file here, as it's too basic.
« previous page
(Page 2 of 2, totaling 11 entries)
|
AboutCalendarArchivesCategoriesShow tagged entriesandroid anti-spam apache astronomy austria automobile ballooning bash bug career cloud collecting comic cooking crypto cw debian diy dreams education electronics event fail fashion finance flickr fuerteventura fun gentoo geography german gnu-linux google google earth graphics guitar hardware history image processing internet kernel kids language lanzarote lhc lifestyle linkroll literature ltd machine learning making mathematics matlab microsoft migration movies munich music nautilus numismatics octave pdf perl philosophy phone photo gear photography physics podcast politics postfix private programming public transport rant religion review salzburg samsung science security shtf social web software statistics storage sustainability symbian tablet time lapse transceiver tv usenet venice video virtualization wordplay work www yahoo
Syndicate This BlogFollow meBookmarks
Powered by |