Skip to content Skip to navigation

Connexions

You are here: Home » Content » Astronomical Image Deconvolution: Image Processing with Weiner Filter

Navigation

Content Actions

  • Download module PDF
  • Add to ...
    Add the module to:
    • My Favorites
    • A lens
    • An external social bookmarking service
    • My Favorites (What is '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 (What is 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.

    • External bookmarks
  • E-mail the author

Lenses

What is 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.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • Rice University ELEC 301 Projects

    This module is included inLens: Rice University ELEC 301 Project Lens
    By: Rice University ELEC 301As a part of collection:"ELEC 301 Projects Fall 2006"

    Click the "Rice University ELEC 301 Projects" link to see all content affiliated with them.

Recently Viewed

This feature requires Javascript to be enabled.

Astronomical Image Deconvolution: Image Processing with Weiner Filter

Module by: Brenton Loeffelman

Summary: The complete image processing technique.

Our first step was to process the images using the basic procedures used by astronomers in the taking of data. Each set of data images is accompanied by a set of “darks” and “flats” taken at the same time as the rest of teh data. A dark is a picture taken with the telescope closed (i.e. with the lens cap on) for the same length of time as the actual data images are exposed; it produces an “image” of current fluctuations in the CCD due to thermal variation. A flat is an image taken of a white, uniformly lit background, and shows any discrepencies in the CCD produced image, such as dead pixels or positional variations.

Figure 1: A raw data image, showing errors from the telescope CCD as the lighter left side border.
Raw Data
Raw Data (http://cnx.org/GroupWorkspaces/wg614/m14185/rawdata.jpg)
Figure 2: A calibrated data image. Note the removal of the white from the left border.
Calibrated Data
Calibrated Data (http://cnx.org/GroupWorkspaces/wg614/m14185/calibrateddata.jpg)

After we removed the darks and flats from our data images, we were ready to begin processing our calibrated images. For each image, we used the image model we had already made, with a few basic assumptions. First, we assumed an approximately Gaussian distribution for both the noise and the point spread function (PSF) h, which modeled the blurring of the image due to intervening effects, most notably atmospheric disturbance. Secondly, we assumed that the original images of the stars could be modeled as delta functions (point sources) before distortion. Next, we had to build our Weiner Filter G, such that:

Deconvolution with Weiner filter G

Ĝ×Ŷj= Ĝ Ŷj  (1)

where  is the Fourier transform of our estimate of the original object, Ĝ is our Weiner filter, and Ŷj is again the Fourier transform of our data image. The Weiner filter is:

Addition in a MathML module

Ĥ×Sss|Ĥ|2+SssSnn=Ĝ Ĥ Sss |Ĥ| 2 Sss Snn Ĝ (2)

with Sss being the power spectrum of the data image, Snn the power spectrum of the noise, and Ĥ the Fourier transform of a Gaussian distribution in two dimensions. However, since our stars are assumed to be point functions, Sss can be assumed as constant; also, we assumed a Gaussian distribution of our noise, so its power spectrum can be modeled by its variance σn2. The Gaussian distribution in two dimensions is given by:

Addition in a MathML module

(1/(2*π*σ^2))exp(-(u^2 + v^2)/(2σ^2))=h (1/(2*π*σ^2)) exp(-(u^2 + v^2)/(2σ^2)) h (3)
Figure 3: Gaussian distribution used for our filter.
Gaussian Distribution
Gaussian Distribution (http://cnx.org/GroupWorkspaces/wg614/m14185/multiplecornerh.jpg)

where u and v give the position in two dimensions. As seen on the right, our data images take the upper left corner as the origin, so we had to place the center of our Gaussian function there as well as periodize it so we are actually filtering with the entire function across our image. Taking the Fourier transform and substituting in, we got our final Weiner filter. From there, it was a simple matter of multiplying by our data image’s Fourier transform and taking the inverse, two dimensional FFT to find āi, our estimation of the original object from just that one data image. As shown below, the Weiner filter does a good job at sharpening the stars in the image (look in particular at stars in the upper left of the cluster) while not amplifying the noise level. In fact, our measured noise variance remained unchanged through this process.

Figure 4: A figure after the deconvolution process.
Processed Image
Processed Image (http://cnx.org/GroupWorkspaces/wg614/m14185/Try3pic1bestsigma0pt07.jpg)

Repeating this process for each data image, we created several different estimations of the original object. So, the next major step was to combine these results to get our final best estimate of the object. We began this process by registering the different estimations āi; to do this, we chose three stars on each image as guides. Then, we utilized the image transformation tools available in Matlab to linearly transform (translate/rotate) all three images so that our three guide stars matched up as closely as possible. This step ensured that the images matched up on top of each other for the final step in the process. As the last step in our image processing, we combined the data images using a simple weighted average. Each estimation image of our original object was weighted by the inverse of its original noise σn2. The final product of this weighted average produced our best estimate of the actual Messier object 3.

Comments, questions, feedback, criticisms?

Send feedback