(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''TWO DIMENSIONAL SIGNALS '''
+
[[Category:2D rect]]
 +
[[Category:continuous-space Fourier transform]]
  
 +
=TWO DIMENSIONAL SIGNALS =
 +
A summary from a spectral analysis point of view, by [[user:apanja|Ananya Panja]]
 
----
 
----
Some 2D signals are <math>\ \delta\left (\mathit{x}, \mathit{y}\right )</math>,Rect<math>\left (\mathit{x}, \mathit{y}\right )</math>,Sinc<math>\left (\mathit{x}, \mathit{y}\right )</math>.One important property of 2D functions is that they are separable,when they are a product of two 1D signals.They are of the form :
+
*[[2D_rect|More about rect(x,y)]]
  <math>\ \mathbf{f}\left (\mathit{x}, \mathit{y}\right )=\mathbf{g}\left (\mathit{x}\right )\mathbf{h}\left (\mathit{y}\right)</math>
+
*[[SignalDefinitions|Back to "Basic Signals and Functions" Table]]
 +
*[[ECE438|Back to ECE438]]
 +
----
 +
Some 2D [[SignalDefinitions|signals]] are:
  
 +
<math>\ \delta\left (\mathit{x}, \mathit{y}\right ), \text{ Rect} \left (\mathit{x}, \mathit{y}\right ),\text{ Sinc}\left (\mathit{x}, \mathit{y}\right )</math>.
  
 +
One important property of 2D functions is that they are separable, when they are a product of two 1D signals.They are of the form :
  
 +
<math>\ \mathbf{f}\left (\mathit{x}, \mathit{y}\right )=\mathbf{g}\left (\mathit{x}\right )\mathbf{h}\left (\mathit{y}\right)</math>
  
 +
For example, the [[2D_rect|rect 2D function]] is
  
 +
<math>\text{Rect}\left (\mathit{x}, \mathit{y}\right ) =
 +
\begin{cases}
 +
  1,  & \mbox{if }|x|,|y|\mbox{ is less than 1} \\
 +
  0, & \mbox{ }\mbox{ else}
 +
\end{cases}</math>
 +
 +
 +
The [[2D_rect|rect 2D function]] looks like a box .
 +
 +
[[Image:img8.jpg]]
 +
 +
The top view of the [[2D_rect|rect function]] looks like: Like a pixel
 +
 +
[[Image:img11.jpg]]
 +
 +
A fourier transform of a [[2D_rect|rect function]] is a product of 2 Sinc functions. The high'DC' components of the [[2D_rect|rect function]] lies in the origin of the image plot and on the fourier transform plot, those DC components should coincide with the center of the plot. But with a direct fft approach,the plot doesnt look like the expected fft graph. The DC components are found on the edges instead.
 +
[[Image:img9.jpg]]
 +
 +
 +
 +
The DC components are at the corners of the frequency space plot. However with fftshift function the image can be pre and post processed to move the DC components in the center of the fourier transform. So that the FT plots looks like the expected plot. The [[2D_rect|rect function]] is first shifted in the image plot and then 2 dimensional fft is applied on the shifted rect function. The fft is again shifted to render the expected plot.
 +
With fftshift,FT looks like:
 +
[[Image:img10.jpg]]
 +
 +
Another 2D function is Circ function.It is not separable into product of 2 1D functions
 +
Circ<math>\left (\mathit{x}, \mathit{y}\right ) =
 +
\begin{cases}
 +
  1,  & \mbox{if }\sqrt{x^2 +y^2} \mbox{ is less than 1} \\
 +
  0, & \mbox{ }\mbox{ else}
 +
\end{cases}</math>
 +
 +
It looks like a cylinder in the 2D .The topview appears like a circle.
 +
[[Image:img12.jpg]][[Image:img13.jpg]]
 +
The approach of direct fft and shifted fft is applied to get the appropriate results.
 +
[[Image:img14.jpg]][[Image:img15.jpg]]
 +
 +
== Results ==
 +
To get the fft of the 2D [[SignalDefinitions|signals]],a direct fft is not the correct approach ,as the DC components instead of lying in the center,lies at the corners.To avoid it and get the correct fft,fftshift is used.
 +
 +
----
 +
--[[User:Apanja|Apanja]] 03:59, 6 November 2009 (UTC)Ananya Panja
 +
----
 +
[[SignalDefinitions|Back to "Basic Signals and Functions" Table]]
  
Rect<math>\left (\mathit{x}, \mathit{y}\right ) = <math>
+
[[ECE438|Back to ECE438]]

Latest revision as of 09:13, 11 November 2011


TWO DIMENSIONAL SIGNALS

A summary from a spectral analysis point of view, by Ananya Panja



Some 2D signals are:

$ \ \delta\left (\mathit{x}, \mathit{y}\right ), \text{ Rect} \left (\mathit{x}, \mathit{y}\right ),\text{ Sinc}\left (\mathit{x}, \mathit{y}\right ) $.

One important property of 2D functions is that they are separable, when they are a product of two 1D signals.They are of the form :

$ \ \mathbf{f}\left (\mathit{x}, \mathit{y}\right )=\mathbf{g}\left (\mathit{x}\right )\mathbf{h}\left (\mathit{y}\right) $

For example, the rect 2D function is

$ \text{Rect}\left (\mathit{x}, \mathit{y}\right ) = \begin{cases} 1, & \mbox{if }|x|,|y|\mbox{ is less than 1} \\ 0, & \mbox{ }\mbox{ else} \end{cases} $


The rect 2D function looks like a box .

Img8.jpg

The top view of the rect function looks like: Like a pixel

Img11.jpg

A fourier transform of a rect function is a product of 2 Sinc functions. The high'DC' components of the rect function lies in the origin of the image plot and on the fourier transform plot, those DC components should coincide with the center of the plot. But with a direct fft approach,the plot doesnt look like the expected fft graph. The DC components are found on the edges instead. Img9.jpg


The DC components are at the corners of the frequency space plot. However with fftshift function the image can be pre and post processed to move the DC components in the center of the fourier transform. So that the FT plots looks like the expected plot. The rect function is first shifted in the image plot and then 2 dimensional fft is applied on the shifted rect function. The fft is again shifted to render the expected plot. With fftshift,FT looks like: Img10.jpg

Another 2D function is Circ function.It is not separable into product of 2 1D functions Circ$ \left (\mathit{x}, \mathit{y}\right ) = \begin{cases} 1, & \mbox{if }\sqrt{x^2 +y^2} \mbox{ is less than 1} \\ 0, & \mbox{ }\mbox{ else} \end{cases} $

It looks like a cylinder in the 2D .The topview appears like a circle. Img12.jpgImg13.jpg The approach of direct fft and shifted fft is applied to get the appropriate results. Img14.jpgImg15.jpg

Results

To get the fft of the 2D signals,a direct fft is not the correct approach ,as the DC components instead of lying in the center,lies at the corners.To avoid it and get the correct fft,fftshift is used.


--Apanja 03:59, 6 November 2009 (UTC)Ananya Panja


Back to "Basic Signals and Functions" Table

Back to ECE438

Alumni Liaison

Correspondence Chess Grandmaster and Purdue Alumni

Prof. Dan Fleetwood