Docsity

Fourier transform for images, Appunti di Elaborazione digitale delle immagini

Toggle sidebar
bg1
!
Fourier!Transform!in!2D!
!
Today!we!will!see!the!analysis!through!Fourier!transform.!As!we!are!in!2d!domain,!so!will!be!the!
Fourier!transform.!It!is!exactly!the!same!method!that!we!used!in!signal!processing!as!we!are!
applying!this!decomposition!in!harmonic!component!in!1d!signal!and!we!completed!this!
decomposition!even!by!using!methods!that!are!able!to!consider!two!signal!at!a!time!such!as!the!
cross-spectrum!analysis:!spectrum!and!cross-spectrum!analysis!are!both!based!on!the!FT.!In!this!
lesson!we!will!see!how!the!Fourier!decomposition!applies!even!on!image!and!objects!in!2d!spatial!
domain.!Fourier!analysis!allows!to!associate!to!a!couple!of!function!f(x,y),!another!couple!of!
function!in!another!domain,!which!is!the!domain!of!space!frequencies!so!we!pass!form!space!
image!to!space!frequencies,!with!exactly!the!same!meaning!that!we!had!in!1d!domain.!The!
method!is!the!same!used!to!analyze!another!object.!We!are!doing!a!decomposition!into!a!sum!of!
harmonic!components.!as!we!had!sinusoids!that!compose!our!signal!that!change!in!time.!in!our!
previous!approach!we!had!a!signal!that!changed!in!time!and!we!decomposed!it!in!a!sum!of!
sinusoids,!we!started!from!periodic!signals,!which!has!a!perfect!periodic!sinusoids!which!was!
decomposed!as!a!sum!of!harmonic!components!and!their!sum!in!amplitude!and!phase!quantified!
the!contribution!of!the!variance!of!the!signal.!The!decomposition!that!we!made!of!this!signal!in!
terms!of!frequencies!gave!us!picks!at!specific!frequencies!in!the!positive!and!in!teh!negative!axis!
(since!FT!is!symmetric).!The!idea!is!the!same!in!2d!domain.!We!obtain!in!a!new!frequency!domain!
values!that!are!amplitude!(the!presence!of!that!specific!component!inside!the!image)!and!phase!
(represents!an!inclination,!a!certain!angle!by!which!the!different!harmonic!components!appear!in!
the!decomposition).!!
We!decompose!the!content!of!any!kind!of!image!in!a!sum!of!harmonic!component!plus!noise!and!
they!represent!the!information!content!(in!amplitude!and!phase)!inside!the!image.!!
FT!is!a!very!powerful!method!in!bio-signal!and!in!bio-images!and!it!is!adopted!in!analysis!of!the!
resolution!and!in!filtering!(same!meaning!that!in!1d!domainàchanges!the!frequency!content!of!
our!image!in!order!to!reduce!noise,!improving!the!SNR,!and!to!extract!significant!events,!which!in!
image!are!boundariesàchanges!between!objects!inside!the!image,!since!an!object!is!identified!by!
its!contours).!!
Fourier!Transform!will!be!a!core!method!in!tomographic!reconstruction,!which!mean!that!starting!
from!projections!we!can!reconstruct!an!image,!and!the!technical!path!to!react!this!result!passes!
through!!the!FT!and!IFT.!So!decomposing!the!content!of!the!image!and!coming!back!from!the!
spatial!frequency!domain!to!the!space!domainà!this!will!be!crucial!in!MRI!generation.!Fourier!
transform!has!a!very!important!role!in!many!aspects!in!Image!analysis.!!
!
!
What!is!a!spatial!frequency?
!
!
Here!we!have!a!sinusoid!at!a!specific!frequency,!
another!at!three!time!the!same!frequency,!we!sum!up!
them!and!we!obtain!a!square!signals.!In!the!same!way!
we!can!decompose!the!squared!signal!in!the!two!
sinusoids!we!have!at!the!top!of!the!image.!It!is!
important!to!notice!that!the!summed!up!frequencies!
are!multiples!of!the!same!frequency.!
pf3
pf4
pf5

Anteprima parziale del testo

Scarica Fourier transform for images e più Appunti in PDF di Elaborazione digitale delle immagini solo su Docsity!

Fourier Transform in 2D

Today we will see the analysis through Fourier transform. As we are in 2d domain, so will be the Fourier transform. It is exactly the same method that we used in signal processing as we are applying this decomposition in harmonic component in 1d signal and we completed this decomposition even by using methods that are able to consider two signal at a time such as the cross-spectrum analysis: spectrum and cross-spectrum analysis are both based on the FT. In this lesson we will see how the Fourier decomposition applies even on image and objects in 2d spatial domain. Fourier analysis allows to associate to a couple of function f(x,y), another couple of function in another domain, which is the domain of space frequencies so we pass form space image to space frequencies, with exactly the same meaning that we had in 1d domain. The method is the same used to analyze another object. We are doing a decomposition into a sum of harmonic components. as we had sinusoids that compose our signal that change in time. in our previous approach we had a signal that changed in time and we decomposed it in a sum of sinusoids, we started from periodic signals, which has a perfect periodic sinusoids which was decomposed as a sum of harmonic components and their sum in amplitude and phase quantified the contribution of the variance of the signal. The decomposition that we made of this signal in terms of frequencies gave us picks at specific frequencies in the positive and in teh negative axis (since FT is symmetric). The idea is the same in 2d domain. We obtain in a new frequency domain values that are amplitude (the presence of that specific component inside the image) and phase (represents an inclination, a certain angle by which the different harmonic components appear in the decomposition). We decompose the content of any kind of image in a sum of harmonic component plus noise and they represent the information content (in amplitude and phase) inside the image. FT is a very powerful method in bio-signal and in bio-images and it is adopted in analysis of the resolution and in filtering (same meaning that in 1d domainàchanges the frequency content of our image in order to reduce noise, improving the SNR, and to extract significant events, which in image are boundariesàchanges between objects inside the image, since an object is identified by its contours). Fourier Transform will be a core method in tomographic reconstruction, which mean that starting from projections we can reconstruct an image, and the technical path to react this result passes through the FT and IFT. So decomposing the content of the image and coming back from the spatial frequency domain to the space domainà this will be crucial in MRI generation. Fourier transform has a very important role in many aspects in Image analysis.

What is a spatial frequency?

Here we have a sinusoid at a specific frequency, another at three time the same frequency, we sum up them and we obtain a square signals. In the same way we can decompose the squared signal in the two sinusoids we have at the top of the image. It is important to notice that the summed up frequencies are multiples of the same frequency.

In the space domain what we see is this behavior. the dimension is extended (x and y axis). The red profile reports the first image. We are adding higher frequencies, in the second case we start to have the square image, while when we add even higher frequencies the red profile starts to show a more precise oscillation replicating the square signal. Since we are in 2d domain we have not only the red profile but kind of lines and their dimension is equal to the oscillation of the components. So oscillation identify a change that represents a change in intensity. If we increase the frequencies inside the image the alternance between black and white component appears in a more precise way. This is still a low frequency image, which does not represent sharp changes. The presence of only low frequency makes the image blur. If we want an image well defined i need to have inside high frequencies. What we are able to see inside our image is the field of view. In this examples we are changing only 1 space variable (x), nothing changes in y direction.

The effect of phase

This is what we obtain by summing up components with different phases. Some phase changes the shape of our signal. We have the maximum at the white line and minimum at black line. The image is a discrete functionà we obtain the image from different devises and we have always a discrete object. In the image is reported the grey level of the corresponding pixel, we are considering that we are in the discrete domain. The elementary component of this image is a pixel, the size of the pixel defines the resolution (we can’t see any element smaller than the size of the pixel). To fix the dimension of the pixel we have a parameter which is the full width at half maximum (which is a characteristic of our image system generation). We are in a discrete domain so we need the discrete Fourier transform. *this is the continuous form of the FT Now we will see some examples of the decomposition: sinusoidal roofing--> it's the best way to approach to FT in 2d domain, it means to look at it at something that oscillate in three dimension (third one is the intensity of grey).It's profile is a perfect sinusoid which repeat itself along y axis, accumulating itself, and changing along x. The profile of it generates what is called roofing. ex. cos that is invariant along y and changes along x at a certain frequency.

cos( w _x x +w _y y) In this image we can see different parts of the image which differ in frequency (amplitude of the column), in phase (angle of the column) and in the variation along x or along y axis. inverse FT exists and from the decomposition that we have obtain we can go back to the image. This will be very important in magnetic resonance because we obtain magnitude and phase of our components and we have to reconstruct the image applying the IFT This slide recalls a concept that we have already introduces: these are our alternance in a sinusoidal component between black and white elements, the oscillation of the element in its direction gives the information that the phase is different from 0. this is also a composition of two sinusoids changing in x and y axis, this change is represented by two different spatial frequencies (u,v) How do we apply the FFT? the schema reports it. we have a 2d image and we want to transform it in the frequency domain we have a forward FT and we calculate the real and imaginary parts, then we obtain info about the magnitude (amplitude) and the phase (angle) of the transform. We can proceed to come back the image by calculate the IFT. we will see that there is an algorithm to calculate the FT in complete discrete domain. DFT will be the basic tool we will use to calculate FT in our images. FT has the same properties than before. We already used the separability since we have seen that having an image in x and y domain we can calculate the FT separating the x and y components. Another property is linearity --> linear combination in the space domain corresponds to linear combination in space frequency

domain. Convolution theorem will be used to apply filters in the space domain. Some example: q = 0 ; fq = wq /2p= 0. Our sinusoids changes in x axis and accumulate along y. In the space frequency we have normalized f, so the plane goes from - 0.5 to 0.5, centered in

  1. we have two picks in the positive and in the negative part of x. q = 90° ; fq = wq /2p= 0. This is the same but changes along y. q= 30° ; fq = wq /2p= 0. In the third case the phase is 30*. we have to consider which is the direction in which the sinusoid changes and in which the sinusoid accumulates. If i have more than one component i just need to add picks. f(x,y)=fx(x)·fy(y), then F(ωx, ωy)=F ωx(ωx)·F ωy(ωy)

There is a woman and we have low pass filtering, associated to a FT that represents frequencies very near the origin. Then high pass filtering produces only the edges in the structure inside the image and so the position of the high frequencies is far from the origin. While the band pass gives medium frequencies. Filtering in different ways we can obtain different component of the images.