Computing for Engineers in Python

Similar documents
Lecture 17.5: More image processing: Segmentation

CS/ECE 545 (Digital Image Processing) Midterm Review

Digital Image Processing

CSE 564: Scientific Visualization

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

Image Enhancement in spatial domain. Digital Image Processing GW Chapter 3 from Section (pag 110) Part 2: Filtering in spatial domain

Lane Detection in Automotive

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

>>> from numpy import random as r >>> I = r.rand(256,256);

Filtering in the spatial domain (Spatial Filtering)

Templates and Image Pyramids

Lane Detection in Automotive

IDENTIFICATION OF FISSION GAS VOIDS. Ryan Collette

CSE 564: Visualization. Image Operations. Motivation. Provide the user (scientist, t doctor, ) with some means to: Global operations:

Image Enhancement using Histogram Equalization and Spatial Filtering

Computer Vision. Howie Choset Introduction to Robotics

PRACTICAL IMAGE AND VIDEO PROCESSING USING MATLAB

Templates and Image Pyramids

Image Filtering in Spatial domain. Computer Vision Jia-Bin Huang, Virginia Tech

1. (a) Explain the process of Image acquisition. (b) Discuss different elements used in digital image processing system. [8+8]

More image filtering , , Computational Photography Fall 2017, Lecture 4

Prof. Feng Liu. Winter /10/2019

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Image Processing for feature extraction

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

LAB MANUAL SUBJECT: IMAGE PROCESSING BE (COMPUTER) SEM VII

Practical Image and Video Processing Using MATLAB

Digital Image Processing. Digital Image Fundamentals II 12 th June, 2017

International Journal of Innovative Research in Engineering Science and Technology APRIL 2018 ISSN X

Part I Feature Extraction (1) Image Enhancement. CSc I6716 Spring Local, meaningful, detectable parts of the image.

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad

ECC419 IMAGE PROCESSING

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Image filtering, image operations. Jana Kosecka

Head, IICT, Indus University, India

CAP 5415 Computer Vision. Marshall Tappen Fall Lecture 1

Digital Image Processing 3/e

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

Sensors and Sensing Cameras and Camera Calibration

C. Efficient Removal Of Impulse Noise In [7], a method used to remove the impulse noise (ERIN) is based on simple fuzzy impulse detection technique.

Image Filtering. Median Filtering

Filip Malmberg 1TD396 fall 2018 Today s lecture

Computer Vision. Intensity transformations

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

Noise Reduction Technique in Synthetic Aperture Radar Datasets using Adaptive and Laplacian Filters

>>> from numpy import random as r >>> I = r.rand(256,256);

Image Processing : Introduction

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Image processing for gesture recognition: from theory to practice. Michela Goffredo University Roma TRE

Image restoration and color image processing

Images and Filters. EE/CSE 576 Linda Shapiro

Image processing. Image formation. Brightness images. Pre-digitization image. Subhransu Maji. CMPSCI 670: Computer Vision. September 22, 2016

Carmen Alonso Montes 23rd-27th November 2015

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

A Study On Preprocessing A Mammogram Image Using Adaptive Median Filter

1.Discuss the frequency domain techniques of image enhancement in detail.

Introduction. Computer Vision. CSc I6716 Fall Part I. Image Enhancement. Zhigang Zhu, City College of New York

SYLLABUS CHAPTER - 2 : INTENSITY TRANSFORMATIONS. Some Basic Intensity Transformation Functions, Histogram Processing.

Direction based Fuzzy filtering for Color Image Denoising

A Study on Image Enhancement and Resolution through fused approach of Guided Filter and high-resolution Filter

A Global-Local Noise Removal Approach to Remove High Density Impulse Noise

Spatial Domain Processing and Image Enhancement

Filtering Images in the Spatial Domain Chapter 3b G&W. Ross Whitaker (modified by Guido Gerig) School of Computing University of Utah

Motion illusion, rotating snakes

Image Enhancement in the Spatial Domain

Image analysis. CS/CME/BIOPHYS/BMI 279 Fall 2015 Ron Dror

Image interpretation and analysis

Local Image Segmentation Process for Salt-and- Pepper Noise Reduction by using Median Filters

What is an image? Bernd Girod: EE368 Digital Image Processing Pixel Operations no. 1. A digital image can be written as a matrix

Image Filtering. Reading Today s Lecture. Reading for Next Time. What would be the result? Some Questions from Last Lecture

VLSI Implementation of Impulse Noise Suppression in Images

CSC 320 H1S CSC320 Exam Study Guide (Last updated: April 2, 2015) Winter 2015

ENEE408G Multimedia Signal Processing

Fixing the Gaussian Blur : the Bilateral Filter

CS 4501: Introduction to Computer Vision. Filtering and Edge Detection

Keywords Fuzzy Logic, ANN, Histogram Equalization, Spatial Averaging, High Boost filtering, MSE, RMSE, SNR, PSNR.

Study of Various Image Enhancement Techniques-A Review

Vision Review: Image Processing. Course web page:

Performance Evaluation of Edge Detection Techniques for Square Pixel and Hexagon Pixel images

Image Filtering Josef Pelikán & Alexander Wilkie CGG MFF UK Praha

A Modified Non Linear Median Filter for the Removal of Medium Density Random Valued Impulse Noise

Digital Image Processing Labs DENOISING IMAGES

Prof. Feng Liu. Fall /02/2018

Impulse Noise Removal and Detail-Preservation in Images and Videos Using Improved Non-Linear Filters 1

Image De-noising Using Linear and Decision Based Median Filters

Guided Image Filtering for Image Enhancement

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

Chapter 6. [6]Preprocessing

Noise and Restoration of Images

MATLAB 6.5 Image Processing Toolbox Tutorial

On Fusion Algorithm of Infrared and Radar Target Detection and Recognition of Unmanned Surface Vehicle

CSSE463: Image Recognition Day 2

Analysis of Satellite Image Filter for RISAT: A Review

Color Transformations

Last Lecture. photomatix.com

Reducing Uncertainty in Wind Turbine Blade Health Inspection with Image Processing Techniques. Huiyi Zhang March 2, 2015

An Efficient Noise Removing Technique Using Mdbut Filter in Images

A Proficient Roi Segmentation with Denoising and Resolution Enhancement

CHAPTER 4 LOCATING THE CENTER OF THE OPTIC DISC AND MACULA

Transcription:

Computing for Engineers in Python Lecture 10: Signal (Image) Processing Autumn 2011-12 Some slides incorporated from Benny Chor s course 1

Lecture 9: Highlights Sorting, searching and time complexity Preprocessing (sorting) the data enables fast (O(log 2 n)) access to what we are interested in (searching) Binary search algorithm + time complexity analysis Comparing recursive vs. iterative implementations efficiency Bubble sort + time complexity analysis Is there a faster sorting algorithm? Yes! (Quick Sort in tirgul) Comparing Bubble sort to sorted efficiency Generic sorting 2

More Sorting Algorithms Insertion, Selection O(n 2 ) in tirgul Quick sort O(nlog 2 n) on average in tirgul Average versus worst case analysis week) (maybe next "בהזדמנות " Merge sort O(nlog 2 n) worst case Can we do better than O(nlog 2 n) in general? Bucket sort 3

Signal Processing In the physical world, any quantity measurable through time or over space can be taken as a signal Signals are or electrical representations of timevarying or spatial-varying physical quantities Signal processing: applying mathematical techniques for the extraction, transformation and interpretation of signals, in either discrete (digital) or continuous (analog) time Example signals: radio, telephone, radar, sound, images, video, sensor data 4

Digital Images Digital image is a numeric representation of a two-dimensional image Examples: photos, microscopic, medical, astronomical 5

Image Representation Encoded as a n-by-m matrix M Each element M[x,y] in an image is called picture element (pixel), representing the light intensity / color at that location RGB, gray-level images Video an image for each time t 6

Resolution Pixel resolution vs. spatial resolution Pixel resolution == pixel count depends on properties of the system creating the image, not just the pixel resolution Same number of pixels, different spatial resolution: http://www.youtube.com/watch?v=i2aqjjzp6jk 7

Image Quantization Number of bits per pixel 24 bit RGB 16 colors Note that both images have the same pixel & spatial resolution

Gray Level Images The remaining of class will deal with gray-level images (although can be applicable for color images) 8 bits per pixel (256 gray levels), 0 black, 255 white Other representations: Binary 1bit per pixel Some applications use more colors (medical imaging) 9

An Example 10

Image Processing Signal processing for which the input is an image Typical operations: Color corrections / calibration Image segmentation Image registration / alignment Denoising Typical applications: Machine vision Medical image processing Face detection Augmented reality 11

In Python How to handle an image? The Python Imaging Library http://www.pythonware.com/products/pil/ Example tutorial: http://www.geeks3d.com/20100930/tutorial-first-steps-with-pil-python-imaging-library The Image Module: http://www.pythonware.com/library/pil/handbook/image.htm Capacities: Read / write images Display image Basic image processing 12

Loading and Viewing an Image http://www.pythonware.com/library/pil/handbook/image.htm 13

Access Pixels 14

Create and Save an Image 15

Output 16

Rolling an Image 17

Output 18

Rotating an Image 19

Edges Sharp change in intensity between close pixels Denoted edges Usually captures much of the meaningful information in the image Edge detection algortihms: Sobel Lena Laplacian 20

Edge Detection Example 21

Blur and Noise Gaussian blur (sigma = 2) Gaussian noise Lena Salt and pepper noise Credit: Wikipedia 22

Denoising Algorithms Examples: Local means: replace observed pixel with neighborhood s (usually 3x3 mask) average Local medians: with neighborhood s median x 23

Denoising Algorithms Local means: Pros: reduces noise on smooth areas Cons: blur edges, sensitivity to extreme values (e.g., as in salt and pepper noise) Local medians: Pros: preserve edges, not sensitive to extreme values Cons: eliminate fine details (contours) in the image x 24

Example In Tirgul 25

Image Manipulation Full Example http://www.riisen.dk/dop/pil.html 26

Image Segmentation 27

Image Segmentation Algorithms Thersholding Clustering Region growing Compression-based methods Histogram-based methods Model-based methods Etc. 28

Thresholding Simplest segmentation method Apply a threshold to turn a gray-scale image into a binary image The key is to select the appropriate threshold value Popular method Otsu s method (maximal variance) 29

Example - Thresholding 30

Example - Thresholding 31

Results TH = 20 TH = 80 TH = 140 TH = 180 32

HW The Whole Loop Input: noisy image Output: segmented contours on top of input image How? Denoising Edge detection Thresholding (histogram based Otsu s algorithm) Visualization 33

Real World Application Face Detection Credit: Intel Technology Journal, Volume 09, Issue 01 34

35