Git Product home page Git Product logo

cse-3313--hw04's Introduction

CSE-3313-HW04

This is the coding assignment for Homework 4 for CSE3313 (Introduction to Signal Processing). There are 2 coding assignment questions for this hw, the first is Design of Lowpass and Highpass FIR filters and the second is Image Processing using these filters

Purpose for first coding question: Design of Lowpass and Highpass FIR Filters

Learn how to produce the filter coefficients needed to construction lowpass and highpass filters.

That is, a common signal processing task is to remove the components of a signal whose frequency is outside a particular range. A lowpass filter removes the components whose frequency is higher than a certain cut-off frequency while a highpass filter removes the components whose frequency is below a certain cut-off frequency.

Process for first coding question

  • First we design a low-pass filter with the following specifications
    • A cut-frequency of fc = 50 Hz
    • Filter length of L = 21, and M = filter length - 1
    • 0 ≤ n < L

The filter weights w[n] are found using the formula:

Where ft = fc / fs is the normalized cut-off freq.

  • Then we use numpy.convolve() function to apply the filter.
  • For the highpass filter, we design a highpass filter with the following specifications:
    • A cut-off freq of fc = 280 Hz
    • Filter len of 21 and M = filter len - 1

The filter weights w[n] are found from:

Where ft = fc / fs is the normalized cut-off freq.

  • Then once again, apply this highpass filter using numpy.convolve() to the original signal.

Purpose for second coding question : Image Processing

Learn to apply simple filters to images.

Process for second coding question

  • We display the original images from the tiff images given (boat, clock, man, and tank) in their own figure window

  • We then blur the images using a lowpass filter

    • The lowpass filter is a 10-point moving average (that is, h[n] consists of 10 values of 0.1 each)
    • Apply this filter to each row of the image using the convolve function
    • Display the processed image in its own figure window
  • Then we perform edge detection using a highpass filter

    • For this filter, h[n] = {1, -1}
    • Apply this filter to each row of the original image
    • Display the processed image in its own figure window.
  • We do these steps for each individual image given

  • Finally for the image darinGreyNoise.jpg we do the following:

    • remove the noise
      i. Display the original image in its own figure window. This image contains what is called “salt and pepper” noise.
      ii. Remove the noise by averaging it out using a low-pass filter. So we apply the 10-point running average to each row of the image.
      iii. Apply a medin filter (which is a nonlinear filter) to the original noisy image using outputImage = ndimage.median filter(inputImage, 5) where imputImage and outputImage are the names we choose. We use the import from scipy import ndimage

cse-3313--hw04's People

Contributors

shameenshetty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.