Skip to content Skip to navigation

Connexions

You are here: Home » Content » 2D Circular Convolution

Navigation

Recently Viewed

This feature requires Javascript to be enabled.

2D Circular Convolution

Module by: Richard Baraniuk. E-mail the author

User rating (How does the rating system work?)
Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

:
(0 ratings)

Summary: An introduction to 2D circular convolution.

Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.

1D Signals

Circular convolution for 1D1 signals (Figure 1).

Figure 1
Figure 1 (oned.png)
yn=k=0N1hnkmodNxk y n k 0 N 1 h n k N x k (1)
for 0nN1 0 n N 1 .
  1. Flip hh around
  2. Shift this function
  3. Multiply by xx
  4. Add up to get yn y n
  5. Repeat for each nn

2D "Signals"

The domain has two dimensions.

Example 1

Images ( N×N N N box of numbers), Figure 2.

Figure 2: xmn x m n and xN2 x N 2 .
Figure 2 (image.png)

2D LSI Systems

Figure 3.

Figure 3: In general, is a "hypermatrix" N×N×N×N N N N N .
Figure 3 (system.png)
When is LSI, it is completely determined by its impulse response: hN2 h N 2 hmn h m n

Compute output yy via 2D circular convolution (Figure 4).

Figure 4: y= h N x y h N x .
Figure 4 (output.png)

2D circular convolution of x N h x N h (each N×N N N image), Figure 5.

Figure 5: y= x N h y x N h .
Figure 5 (cc.png)
ymn=k=0N1l=0N1hmlmodNnkmodNxlk y m n k 0 N 1 l 0 N 1 h m l N n k N x l k (2)
Same procedure as 1D: flip; shift; multiply; add up; repeat.

Example Filters

1. Smoothers

Figure 6, Figure 7, Figure 8 divided by 10, etc...

Figure 6
Figure 6 (smoother1.png)
Figure 7
Figure 7 (smoother2.png)
Figure 8
Figure 8 (smoother3.png)

2. Edge Detectors

Detects edges in any direction: Figure 9, Figure 10, Figure 10(b), Figure 10(c).

Figure 9
Figure 9 (ed1.png)
Figure 10
(a) (b) (c)
Figure 10(a) (ed2.png)Figure 10(b) (ed3.png)Figure 10(c) (ed4.png)

All vector space theory goes through to 2D images and general dd-dimensional functions.

Example 2

xpp=m=0N1n=0N1|xmn|p p x p m 0 N 1 n 0 N 1 x m n p (3)
<x,y>=m=0N1n=0N1xmnymn¯ x y m 0 N 1 n 0 N 1 x m n y m n (4)
<x,y>x2y2 x y 2 x 2 y (5)
(where Equation 5 is CSI). There exist 2D ONB's etc...

You will learn more on this in Elec 439.

Note:

Much more prevalant use of nonlinear filters on images.

Footnotes

  1. The time domain is 1D.

Content actions

Give Feedback:

E-mail the module author | Rate module ( How does the rating system work?)

Rating system

Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

(0 ratings)

Download:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.

| A lens (?)

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks