Digital Image Processing

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Multimedia communications EG 371Dr Matt Roach Multimedia Communications EG 371 and EE 348 Dr Matt Roach Lecture 6 Image processing (filters)
Content Based Image Retrieval
Chapter 10 Image Segmentation.
Machinen Vision and Dig. Image Analysis 1 Prof. Heikki Kälviäinen CT50A6100 Lectures 8&9: Image Segmentation Professor Heikki Kälviäinen Machine Vision.
Digital Image Processing: Revision
Course Website: Digital Image Processing Image Segmentation: Thresholding.
Segmentation Divide the image into segments. Each segment:
Lappeenranta University of Technology (Finland)
Digital Image Processing
Chapter 10 Image Segmentation.
Introduction to Computer Vision CS / ECE 181B Thursday, April 22, 2004  Edge detection (HO #5)  HW#3 due, next week  No office hours today.
The Segmentation Problem
Thresholding Thresholding is usually the first step in any segmentation approach We have talked about simple single value thresholding already Single value.
Introduction to Image Processing Grass Sky Tree ? ? Review.
Chapter 10: Image Segmentation
Spatial Filtering: Basics
Image Restoration and Reconstruction (Noise Removal)
G52IIP, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
University of Kurdistan Digital Image Processing (DIP) Lecturer: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture,
Chap. 9: Image Segmentation Jen-Chang Liu, Motivation Segmentation subdivides an image into its constituent regions or objects Example: 生物細胞在影像序列中的追蹤.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Segmentation.
Digital Image Processing CCS331 Relationships of Pixel 1.
Digital Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
Chapter 10 Image Segmentation.
Image Processing is replacing Original Pixels by new Pixels using a Transform rst uvw xyz Origin x y Image f (x, y) e processed = v *e + r *a + s *b +
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
G52IVG, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
Chapter 10, Part I.  Segmentation subdivides an image into its constituent regions or objects.  Image segmentation methods are generally based on two.
انجمن دانشجویان ایران – مرجع دانلود کتاب ، نمونه سوال و جزوات درسی
Course Website: Digital Image Processing Image Enhancement (Spatial Filtering 1)
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Image Segmentation by Histogram Thresholding Venugopal Rajagopal CIS 581 Instructor: Longin Jan Latecki.
Sejong Univ. Edge Detection Introduction Simple Edge Detectors First Order Derivative based Edge Detectors Compass Gradient based Edge Detectors Second.
Image Segmentation Dr. Abdul Basit Siddiqui. Contents Today we will continue to look at the problem of segmentation, this time though in terms of thresholding.
Chapter 9: Image Segmentation
November 5, 2013Computer Vision Lecture 15: Region Detection 1 Basic Steps for Filtering in the Frequency Domain.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Digital Image Processing
Sharpening Spatial Filters ( high pass)  Previously we have looked at smoothing filters which remove fine detail  Sharpening spatial filters seek to.
Digital Image Processing CSC331
Environmental Remote Sensing GEOG 2021
Digital Image Processing (DIP)
Machine Vision ENT 273 Lecture 4 Hema C.R.
Chapter 10 Image Segmentation
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Image Segmentation – Detection of Discontinuities
Computer Vision Lecture 13: Image Segmentation III
Image Segmentation – Edge Detection
Digital Image Processing
Digital Image Processing
Computer Vision Lecture 12: Image Segmentation II
Fourier Transform: Real-World Images
Digital Image Processing
Digital Image Processing
ECE 692 – Advanced Topics in Computer Vision
Digital Image Processing
Digital Image Processing
Digital Image Processing
Image Segmentation Image analysis: First step:
Digital Image Processing
Digital Image Processing
Interesting article in the March, 2006 issue of Wired magazine
Digital Image Processing
Presentation transcript:

Digital Image Processing Image Segmentation Based on slides by Brian Mac Namee and DIP book by Gonzalez & Woods

Contents So far we have been considering image processing techniques used to transform images for human interpretation Today we will begin looking at automated image analysis by examining the thorny issue of image segmentation: The segmentation problem Finding points, lines and edges What is thresholding? Simple thresholding Adaptive thresholding

The Segmentation Problem Segmentation attempts to partition the pixels of an image into groups that strongly correlate with the objects in an image Typically the first step in any automated computer vision application

Segmentation Examples Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Detection Of Discontinuities There are three basic types of grey level discontinuities that we tend to look for in digital images: Points Lines Edges We typically find discontinuities using masks and correlation

Point Detection Point detection can be achieved simply using the mask below: Points are detected at those pixels in the subsequent filtered image that are above a set threshold Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Point Detection (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002) X-ray image of a turbine blade Result of point detection Result of thresholding

Line Detection The next level of complexity is to try to detect lines The masks below will extract lines that are one pixel thick and running in a particular direction Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Line Detection (cont…) Binary image of a wire bond mask Images taken from Gonzalez & Woods, Digital Image Processing (2002) After processing with -45° line detector Result of thresholding filtering result

Edge Detection An edge is a set of connected pixels that lie on the boundary between two regions Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Edges & Derivatives We have already spoken about how derivatives are used to find discontinuities 1st derivative tells us where an edge is 2nd derivative can be used to show edge direction Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Derivatives & Noise Derivative based edge detectors are extremely sensitive to noise We need to keep this in mind Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Common Edge Detectors Given a 3*3 region of an image the following edge detection filters can be used Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Edge Detection Example Original Image Horizontal Gradient Component Images taken from Gonzalez & Woods, Digital Image Processing (2002) Vertical Gradient Component Combined Edge Image

Edge Detection Example Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Edge Detection Example Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Edge Detection Example Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Edge Detection Example Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Edge Detection Problems Often, problems arise in edge detection in that there is too much detail For example, the brickwork in the previous example One way to overcome this is to smooth images prior to edge detection

Edge Detection Example With Smoothing Original Image Horizontal Gradient Component Images taken from Gonzalez & Woods, Digital Image Processing (2002) Vertical Gradient Component Combined Edge Image

Laplacian Edge Detection We encountered the 2nd-order derivative based Laplacian filter already The Laplacian is typically not used by itself as it is too sensitive to noise Usually when used for edge detection the Laplacian is combined with a smoothing Gaussian filter Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Laplacian Of Gaussian (LoG) The Laplacian of Gaussian (LoG or Mexican hat) filter uses the Gaussian for noise removal and the Laplacian for edge detection Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Laplacian Of Gaussian Example Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Thresholding Thresholding is usually the first step in any segmentation approach We have talked about simple single value thresholding already Single value thresholding can be given mathematically as follows:

Thresholding Example Imagine a poker playing robot that needs to visually interpret the cards in its hand Original Image Thresholded Image

But Be Careful If you get the threshold wrong the results can be disastrous Threshold Too Low Threshold Too High

Basic Global Thresholding Based on the histogram of an image Partition the image histogram using a single global threshold The success of this technique very strongly depends on how well the histogram can be partitioned

Basic Global Thresholding Algorithm The basic global threshold, T, is calculated as follows: Select an initial estimate for T (typically the average grey level in the image) Segment the image using T to produce two groups of pixels: G1 consisting of pixels with grey levels >T and G2 consisting pixels with grey levels ≤ T Compute the average grey levels of pixels in G1 to give μ1 and G2 to give μ2

Basic Global Thresholding Algorithm Compute a new threshold value: Repeat steps 2 – 4 until the difference in T in successive iterations is less than a predefined limit T∞ This algorithm works very well for finding thresholds when the histogram is suitable

Thresholding Example 1 Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Thresholding Example 2 Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Problems With Single Value Thresholding Single value thresholding only works for bimodal histograms Images with other kinds of histograms need more than a single threshold Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Problems With Single Value Thresholding (cont…) Let’s say we want to isolate the contents of the bottles Think about what the histogram for this image would look like What would happen if we used a single threshold value? Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Single Value Thresholding and Illumination Images taken from Gonzalez & Woods, Digital Image Processing (2002) Uneven illumination can really upset a single valued thresholding scheme

Basic Adaptive Thresholding An approach to handling situations in which single value thresholding will not work is to divide an image into sub images and threshold these individually Since the threshold for each pixel depends on its location within an image this technique is said to be adaptive

Basic Adaptive Thresholding Example The image below shows an example of using adaptive thresholding with the image shown previously As can be seen success is mixed But, we can further subdivide the troublesome sub images for more success

Basic Adaptive Thresholding Example (cont…) These images show the troublesome parts of the previous problem further subdivided After this sub division successful thresholding can be achieved

Summary In this lecture we looked at segmentation, first in particular, edge detection Edge detection is massively important as it is in many cases the first step to object recognition Then we looked at thresholding We saw the basic global thresholding algorithm and its shortcomings We also saw a simple way to overcome some of these limitations using adaptive thresholding

Summary We left some popular techniques out such as Hough transform Region growing Watershed segmentation Color segmentation Use of motion