Professional Documents
Culture Documents
Plagiarism Warning:
As per AOU rules and regulations, all students are required to submit their own TMA work and
avoid plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection.
You must provide all references in case you use and quote another person's work in your TMA.
You will be penalized for any act of plagiarism as per the AOU's rules and regulations.
Declaration of No Plagiarism by Student (to be signed and submitted by student with TMA
work):
I hereby declare that this submitted TMA work is a result of my own efforts and I have not
plagiarized any other person's work. I have provided all references of information that I have
used and quoted in my TMA work.
Signature: 192911
Date: 17/8/2021
1
192911_Mohammed Yahya
The main focus of this TMA is to enable the students to appreciate both the
theoretical/general as well as the applied nature of the Digital Image Processing
(DIP) techniques.
2
192911_Mohammed Yahya
c) Describe in your own words the benefits of using satellite imagery for
monitoring large-scale fires or disasters. 10 marks
Benefits of satellite imagery
VIIRS provides global coverage twice a day with 750m resolution across its entire
scan. It is a substantial improvement for ocean ecology and carbon research studies as
well as for establishing accurate estimates of sea surface temperature which are
essential for predicting hurricanes and other types of severe weather.
8. Earth On AWS
9. Bhuvan- Asia
10.ISRO's Geoportal- Asia
b) Obtain at least two free Satellite images from the above sources and include
them in your answer. 5 marks
4
192911_Mohammed Yahya
Open Source Satellite Images are used in Flood Monitoring. During the last three to
four decades, land and water resource consumption without vision, as well as fast
urbanization, have turned the environment into a card castle, where any minor
alteration can cause a butterfly effect on the environmental equilibrium. Droughts and
floods occur in the Indian subcontinent on a yearly basis. In India, about one-eighth of
5
192911_Mohammed Yahya
the total geographical area is prone to flooding. Natural disasters result in the loss of
life and property, and this is deemed "normal." Every year, flooding affects over a
million people in India's North-Eastern states between July and August. It is an annual
event for the people of Assam, and the death toll and agony are generally overlooked
If one talks about the Open-source information then they are the international
level with merely an expansion of the relatively greater amount of information.
While commercial satellite imagery offer much more detailed information than is
currently available from the Landsat and Spot Image systems
But that have one disadvantage that adds a negative factor in commercial imagery is
that they demands some money or capital for the data acquisition but on the other hand
open source is available to all around the globe and even it is available to everyone out
there who have keen interest in data or the satellite imagery. Also roughly talking open
source imagery provides seamless access and abilities to process spatiotemporal image
sequences on a pronounced scale.
Part 2: Matlab/Python Part (50 Marks): For this part, you must insert your
Matlab or Python code (either screen shots of the code or the actual code) inside
your MS Word answer file for your work. Also you must submit all figures and
relevant images as part of your work in your MS Word answer file . You must
submit your work as only one MS Word file.
Use at least three image processing techniques that you have studied in this course
to extract or reveal the original image from the mystery image. Display your results
6
192911_Mohammed Yahya
in one figure showing all the 3 results. Which technique has performed better and
why?
import cv2
import numpy as np
# Cross Correlation
kernel = np.flipud(np.fliplr(kernel))
xKernShape = kernel.shape[0]
yKernShape = kernel.shape[1]
xImgShape = image.shape[0]
yImgShape = image.shape[0]
if padding != 0:
7
192911_Mohammed Yahya
print(imagePadded)
else:
imagePadded = image
for y in range(image.shape[1]):
# Exit Convolution
break
if y % strides == 0:
for x in range(image.shape[0]):
break
try:
if x % strides == 0:
8
192911_Mohammed Yahya
except:
break
return output
def processImage(x) :
x=cv2.imread(x)
x=cv2.cvtColor(x, cv2.COLOR_BGR2GRAY)
return x
if __name__ == '__main__':
# Grayscale Image
image = processImage('template.jpg')
filter_1 = (1/9 )*np.array([[1, 1, 1], [1, 1, 1], [1, 1, 1]]) # averaging low-pass filter
filter_2 = (1/8)*np.array([[1, 1, 1], [1, 0, 1], [1, 1, 1]]) # circular low-pass filter
filter_3 = (1/6)*np.array([[0, 1, 0], [1, 2, 1], [0, 1, 0]]) # gaussian low-pass filter
plt.subplot(411),plt.imshow(image,cmap="gray"),plt.title('original')
plt.subplot(412),plt.imshow(image_1,cmap="gray"),plt.title('averaging')
plt.subplot(413),plt.imshow(image_2,cmap="gray"),plt.title('circular,')
plt.subplot(414),plt.imshow(image_3,cmap="gray"),plt.title('gaussian')
plt.tight_layout()
plt.show()
Use at least three image processing techniques that you have studied in this course
to highlight the edges in the given image. Display your results in one figure
showing all the 3 results. Which technique has performed better and why?
Solution
# Cross Correlation
kernel = np.flipud(np.fliplr(kernel))
11
192911_Mohammed Yahya
return output
def processImage(x) :
x=cv2.imread(x)
x=cv2.cvtColor(x, cv2.COLOR_BGR2GRAY)
return x
if __name__ == '__main__':
# Grayscale Image
image = processImage('template.jpg') ### Here put the file name of the given
image
plt.subplot(411),plt.imshow(image,cmap="gray"),plt.title('original image')
plt.subplot(412),plt.imshow(image_1,cmap="gray"),plt.title('horizontal edge
detection')
plt.subplot(413),plt.imshow(image_2,cmap="gray"),plt.title('vertical edge
detection')
plt.subplot(414),plt.imshow(image_3,cmap="gray"),plt.title('circular edge
detection')
plt.tight_layout()
plt.show()
12
192911_Mohammed Yahya
13