Connexions

You are here: Home » Content » Code
Content Actions
Lenses

What is 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 (?)
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.
  • This module is included inLens: Rice University ELEC 301 Project Lens
    By: Rice University ELEC 301As a part of collection:"ECE 301 Projects Fall 2003"

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

    Rice University ELEC 301 Projects
  • This module is included inLens: Rice University OpenCourseWare
    By: OpenCourseWare ConsortiumAs a part of collection:"ECE 301 Projects Fall 2003"

    Click the "Rice University OCW" link to see all content affiliated with them.

    Rice University OCW
Tags

(?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Code

Module by: Genaro Picazo

Summary: Code for our ELEC 301 Project for Fall 2003. By: Chris Omidiran, Genaro Picazo, Ian Wells, Daniel Wu

Basis/Orthogonal Matching Pursuit Code

This is our code for the basis pursuit and orthogonal matching pursuit algorithms for 2 dimensional signals, namely images. All of the code was written from scratch by members of the group, and was based on ideas drawn from our research. The code is shown below.
BP Basis
bpbasis.JPG
Figure 1: Code to define our dictionary for the algorithms.
BP Decompose
bpdecompose.JPG
Figure 2: Given a an image, it decomposes the image into a representation of k terms.
OMP Decompose
ompdecompose.JPG
Figure 3: Given a an image, it docomposes the image into a representation of k terms (this one is for OMP, it is the only function that differs between algorithms).
BP Block Decompose
bpblockdecompose.JPG
Figure 4: Decomposes and image into row signals.
BP Construct
bpconstructs.JPG
Figure 5: Reconstructs the approximate representation of the original image.
BP Block Construct
bpblockconstruct.JPG
Figure 6: Reconstructs each row of the approximate representation of the original image.
Applying BP to an Image
imagproc.JPG
Figure 7: This algorithm takes in an image and the number of coefficients to use to approximate it and applies the BP algorithm to it.

Comments, questions, feedback, criticisms?

Send feedback