0% found this document useful (0 votes)
10 views23 pages

Digital Signal and Image Processing

Uploaded by

Jahnvi Aghera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views23 pages

Digital Signal and Image Processing

Uploaded by

Jahnvi Aghera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Digital Signal and Image

Processing
Course Objective

• The objective of the course is to provide understanding of discrete


time signals and systems. Students learn to apply time, space and
frequency domain operations, design of digital filters, apply image
processing algorithms and understand DSP processors.
List of Experiments
Books
1. Alan V. Oppenhiem, Ronald W. Schafer, John R Buck, “Discrete
Time Signal Processing”, 2nd edition, Person
2. Rafael C. Gonzalez and Richard E. Woods, "Digital Image
Processing", 3rd edition, Prentice-Hall, 2008
3. S Salivahanan, C Gnanapriya, “Digital Signal Processing”, 2nd
Edition, Tata Mcgraw hills
4. S Jayaramam, S Esakkirajan, T Veerakumar, “Digital Image
Processing”, Tata Mcgraw hills
Numpy
• NumPy is a module for Python. The name is an acronym for "Numeric
Python" or "Numerical Python". It is pronounced /ˈnʌmpaɪ/ (NUM-py) or
less often /ˈnʌmpi (NUM-pee)). It is an extension module for Python,
mostly written in C. This makes sure that the precompiled mathematical
and numerical functions and functionalities of Numpy guarantee great
execution speed.
• Furthermore, NumPy enriches the programming language Python with
powerful data structures, implementing multi-dimensional arrays and
matrices. These data structures guarantee efficient calculations with
matrices and arrays. The implementation is even aiming at huge matrices
and arrays, better know under the heading of "big data". Besides that the
module supplies a large library of high-level mathematical functions to
operate on these matrices and arrays.
Scipy
• SciPy (Scientific Python) is often mentioned in the same breath with
NumPy. SciPy needs Numpy, as it is based on the data structures of
Numpy and furthermore its basic creation and manipulation
functions. It extends the capabilities of NumPy with further useful
functions for minimization, regression, Fourier-transformation and
many others.
• Both NumPy and SciPy are not part of a basic Python installation.
They have to be installed after the Python installation. NumPy has to
be installed before installing SciPy.
Comparison between Core Python and Numpy

The advantages of Core Python:


• high-level number objects: integers, floating point
• containers: lists with cheap insertion and append methods,
dictionaries with fast lookup
Advantages of using Numpy with Python:
• array oriented computing
• efficiently implemented multi-dimensional arrays
• designed for scientific computation
Matplotlib
• Matplotlib lies in the fact that it is widely considered to be a perfect
alternative to MATLAB, if it is used in combination with Numpy and
Scipy. Whereas MATLAB is expensive and closed source, Matplotlib is
free and open source code. It is also object-oriented and can be used
in an object oriented way. Furthermore it can be used with general-
purpose GUI toolkits like wxPython, Qt, and GTK+. There is also a
procedural "pylab", which designed to closely resemble that of
MATLAB. This can make it extremely easy for MATLAB users to
migrate to matplotlib.
• Matplotlib can be used to create publication quality figures in a
variety of hardcopy formats and interactive environments across
platforms.
• Another characteristic of matplotlib is its steep learning curve, which
means that users usually make rapid progress after having started.
The official website has to say the following about this: "matplotlib
tries to make easy things easy and hard things possible. You can
generate plots, histograms, power spectra, bar charts, errorcharts,
scatterplots, etc, with just a few lines of code."
AIM: To plot unit impulse signal using Python.
In signal processing, a unit impulse signal, also known as a Dirac delta function or impulse
function, is a mathematical function that has the value of 1 at time zero and zero elsewhere.
Generating a unit impulse signal in Python can be done using the NumPy library.
import numpy as np
import [Link] as plt
def unit_impulse(length, position):
signal = [Link](length)
signal[position] = 1
return signal
# Parameters
start = -10 # Start value of the x-axis range
stop = 10 # Stop value of the x-axis range
step = 1 # Step size
# Generate x-axis values
x = [Link](start, stop+step, step)
# Generate unit impulse signal
impulse_signal = unit_impulse(len(x), abs(start)//step)
# Plot the signal
[Link](x, impulse_signal)
[Link]('Time')
[Link]('Amplitude')
[Link]('Unit Impulse Signal')
[Link](True)
[Link]()

You might also like