ImageProcessing9 Segmentation (PointsLinesEdges)
ImageProcessing9 Segmentation (PointsLinesEdges)
2 of 20
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
3 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
4 of 20
Segmentation Examples
5 of 20
Detection Of Discontinuities
There are three basic types of grey level discontinuities that we tend to look for in digital images:
Points Lines Edges
6 of 20
Point Detection
Point detection can be achieved simply using the mask below:
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Points are detected at those pixels in the subsequent filtered image that are above a set threshold
7 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Result of thresholding
8 of 20
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)
9 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
10 of 20
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)
11 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
12 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
13 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
14 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
15 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
16 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
17 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
18 of 20
19 of 20
20 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
21 of 20
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
The Laplacian is typically not used by itself as it is too sensitive to noise Usually hen used for edge detection the Laplacian is combined with a smoothing Gaussian filter
22 of 20
Laplacian Of Gaussian
The Laplacian of Gaussian (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)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
23 of 20
24 of 20
Summary
In this lecture we have begun looking at segmentation, and in particular edge detection Edge detection is massively important as it is in many cases the first step to object recognition