2 Gaussian blurring is used to define an image scale to work in, for interpolation, for computing interest points, and in many more applications. SciPy comes with a module for filtering called scipy.ndimage.filters that can be used to compute these convolutions using a fast 1D separation. All you need to do is: from PIL import Image from numpy import * numpy from scipy.ndimage import filters im = array(Image.open('empire.jpg').convert('L')) = im2 filters.gaussian_filter(im,5) 001-08 T التعليل Here the last parameter of gaussian_filter() is the standard deviation. sagino O 80 (a) q Langla (b) Bia oltes (c) gooliage (d) toteu Figure 1.9: An example of Gaussian blurring using the scipy.ndimage.filters module. (a) original image in grayscale, (b) Gaussian filter with o=2, (c) with σ = 5, (d) with σ = 10. Figure 1.9 shows examples of an image blurred with increasing segma. Larger values gives less details. To blur color images, simply apply Gaussian blurring to each color channel. Exercises 1. F amankay 2. Take an image and apply Gaussian blur like in Figure 1.9. Plot the image contours for increasing values of segma. What happens? Can you explain why? تأخذ صورة الك NOOR FALEH 8
2 Gaussian blurring is used to define an image scale to work in, for interpolation, for computing interest points, and in many more applications. SciPy comes with a module for filtering called scipy.ndimage.filters that can be used to compute these convolutions using a fast 1D separation. All you need to do is: from PIL import Image from numpy import * numpy from scipy.ndimage import filters im = array(Image.open('empire.jpg').convert('L')) = im2 filters.gaussian_filter(im,5) 001-08 T التعليل Here the last parameter of gaussian_filter() is the standard deviation. sagino O 80 (a) q Langla (b) Bia oltes (c) gooliage (d) toteu Figure 1.9: An example of Gaussian blurring using the scipy.ndimage.filters module. (a) original image in grayscale, (b) Gaussian filter with o=2, (c) with σ = 5, (d) with σ = 10. Figure 1.9 shows examples of an image blurred with increasing segma. Larger values gives less details. To blur color images, simply apply Gaussian blurring to each color channel. Exercises 1. F amankay 2. Take an image and apply Gaussian blur like in Figure 1.9. Plot the image contours for increasing values of segma. What happens? Can you explain why? تأخذ صورة الك NOOR FALEH 8
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY