SlideShare ist ein Scribd-Unternehmen logo
1 von 67
Edge Detection & Segmentation
Mr. A. B. Shinde
A. B. Shinde
Contents…
 Detection of discontinuities:
 Point,
 Line and
 Edge detection,
 Thresholding,
 Region based segmentation.
2
A. B. Shinde
3
Introduction
A. B. Shinde
Introduction
• Segmentation subdivides an image into its constituent regions or
objects.
• The level of detail to which the subdivision is carried depends on the
problem being solved i.e. segmentation should stop when the objects or
regions of interest in an application have been detected.
• For example, in the automated inspection of electronic assemblies,
determining the presence or absence of components or broken
connection paths.
4
A. B. Shinde
Introduction
• Segmentation of nontrivial images is one of the most difficult tasks in
image processing.
• Segmentation accuracy determines the eventual success or failure of
computerized analysis procedures.
• A good example is the use of infrared imaging by the military to detect
objects with strong heat signatures, such as equipment and troops in
motion.
5
A. B. Shinde
Introduction
6
Segmentation: Example
A. B. Shinde
Introduction
7
Original Document
Page
Structural Layout
Functional Layout
Segmentation: Example
A. B. Shinde
Introduction
8
Original Image Text line bounding
boxes
Word bounding
boxes
Segmentation: Example
A. B. Shinde
9
Edge Detection
A. B. Shinde
Edge Detection
• In an image, an edge is a curve that follows a path of rapid change in
image intensity.
• Edges are often associated with the boundaries of objects in a scene.
10
A. B. Shinde
Edge Detection
• In general, edge detection is the process that attempts to characterize
the intensity changes in terms of the physical processes that have
originated them.
• Edges provide the topology and structure information of objects in an
image.
• Edge detection can be used for region segmentation, feature extraction
and object or boundary description
11
A. B. Shinde
Edge Detection Techniques
• The process of edge detection is broadly classified in to two broad
techniques
• 1. Derivative Approach
– Edges are detected by taking derivative followed by thresholding.
(Robert Operator and 4-neighbour operator)
– They also incorporate noise cleaning scheme
(Prewitt and Sobel Operator)
 Edge masking means two dimensional derivative computation
• 2. Pattern Fitting Approach
– Here, a series of edge approximating functions in the form of edge
templates over a small neighborhood are analyzed. Parameters along
with properties corresponding to the best fitting function are
determined.
12
A. B. Shinde
Edge Detection Techniques
• Following are some approaches to complete the process of generation
of edge map which may involve some or all of them:
– Noise Smoothing
– Edge Localization
– Edge Enhancement
– Edge Linking
– Edge Following
– Edge Extraction
13
A. B. Shinde
Edge Detection Techniques
• Noise Smoothing
– As we know, “significant intensity differential” represents an “edge”.
– Uncontrolled illumination of light, would produce intensity differential
at almost every point.
– So, all of these differentials are located as edges.
– Hence, it becomes essential to smoothen some of these insignificant
intensity differentials which corresponds to false edges therefore this
step is called as Noise Smoothing.
14
A. B. Shinde
Edge Detection Techniques
– Edge Localization
– Filtering for noise smoothing will definitely have blurring effect to
some extent on the intensity map of the image.
– Sharp edges that corresponds to step change in intensity is going to
be averaged and peak becomes flattened in this process.
– Edge Localization process will mark the edge pixels to the large
extent.
15
A. B. Shinde
Edge Detection Techniques
– Edge Enhancement
– After edge localization, depending on change in intensity, edge
strength is determined along with orientation of edge pixel.
– Weak edges will corresponds to weak intensities and strong edges to
strong intensities.
– The process of edge enhancement filters out edges due to noise
pixels.
– Edge Linking & Edge Following
– Edge Linking process takes an unordered set of edge pixels produced
by an edge detector as an input to form an ordered list of edges.
– Edge following process takes entire edge strength to form geometric
primitives such as lines or curves.
16
A. B. Shinde
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
17
A. B. Shinde
Neighborhood Operations
• Neighbourhood operations
simply operate on a larger
neighbourhood of pixels than
point operations
• Neighbourhoods are mostly
a rectangle around a central
pixel
• Any size rectangle and any
shape filter are possible
18
Origin x
y Image f (x, y)
(x, y)
Neighbourhood
A. B. Shinde
Neighborhood Operations
• For each pixel in the origin image, the outcome is written on the same
location at the target image.
19
Origin x
y Image f (x, y)
(x, y)
Neighbourhood
A. B. Shinde
Neighborhood Operations
20
j k l
m n o
p q r
Origin x
y Image f (x, y)
eprocessed = n*e +
j*a + k*b + l*c +
m*d + o*f +
p*g + q*h + r*i
Filter (w)
Simple 3*3
Neighbourhood
e 3*3 Filter
a b c
d e f
g h i
Original Image
Pixels
*
The above is repeated for every pixel in the original image to generate the
filtered image
A. B. Shinde
21
Point, Line & Edge Detection
A. B. Shinde
Point, Line, and Edge Detection
• Segmentation methods are based on detecting sharp, local changes in
intensity.
• Edge pixels are pixels at which the intensity of an image function
changes abruptly, and edges (or edge segments) are sets of connected
edge pixels.
• A line may be viewed as an edge segment in which the intensity of the
background on either side of the line is either much higher or much
lower than the intensity of the line pixels.
• Similarly, an isolated point may be viewed as a line whose length and
width are equal to one pixel.
22
A. B. Shinde
Point, Line, and Edge Detection
• Local averaging smooths an image and averaging is analogous to
integration
• Abrupt, local changes in intensity can be detected using derivatives,
first- and second-order derivatives are well suited for this purpose.
• Derivatives of a digital function are defined in terms of differences.
• Any approximation used for a first derivative
1. Must be zero in areas of constant intensity;
2. Must be nonzero at the onset of an intensity step or ramp; and
3. Must be nonzero at points along an intensity ramp.
23
A. B. Shinde
Point, Line, and Edge Detection
• Similarly, an approximation used for a second derivative
1. Must be zero in areas of constant intensity;
2. Must be nonzero at the onset and end of an intensity step or ramp;
and
3. Must be zero along intensity ramps.
• Because we are dealing with digital quantities whose values are finite,
the maximum possible intensity change is also finite.
24
A. B. Shinde
Point, Line, and Edge Detection
• We obtain an approximation to the first-order derivative at point of a one-
dimensional function f(x) by expanding the function f(x + Δ x) into a
Taylor series about x letting Δ x = 1 and keeping only the linear terms.
• The result is the digital difference
25
We used a partial derivative here for consistency in notation when we
consider an image function of two variables f(x, y), at which time we will
be dealing with partial derivatives along the two spatial axes.
Clearly, δf / δ x = df / dx when is a function of only one variable.
A. B. Shinde
Point, Line, and Edge Detection
 We obtain an expression for the second derivative by differentiating
above equation with respect to x:
26
This expansion is about point x +1
A. B. Shinde
Point, Line, and Edge Detection
• Our interest is on the second derivative about point x so we subtract 1
from the arguments in the preceding expression and obtain the result
27
A. B. Shinde
Point, Line, and Edge Detection
• Figure shows an image that contains various
solid objects, a line, and a single noise point.
28
Figure shows a horizontal intensity profile of the
image approximately through its center, including
the isolated point. Transitions in intensity between
the solid objects and the background along the
scan line show two types of edges: ramp edges (on
the left) and step edges (on the right).
Intensity transitions involving thin objects such as
lines often are referred to as roof edges.
A. B. Shinde
Point, Line, and Edge Detection
29
Figure shows a simplification of the profile.
In this simplified diagram the transition in the ramp spans four pixels, the
noise point is a single pixel, the line is three pixels thick, and the transition
of the intensity step takes place between adjacent pixels. The number of
intensity levels was limited to eight for simplicity.
A. B. Shinde
Point, Line, and Edge Detection
• In summary, we arrive at the following conclusions:
1. First-order derivatives generally produce thicker edges in an image.
2. Second-order derivatives have a stronger response to fine detail, such
as thin lines, isolated points, and noise.
3. Second-order derivatives produce a double-edge response at ramp and
step transitions in intensity.
4. The sign of the second derivative can be used to determine whether a
transition into an edge is from light to dark or dark to light.
30
A. B. Shinde
Point, Line, and Edge Detection
• The approach of choice for computing first and
second derivatives at every pixel location in an
image is to use spatial filters.
• For the 3 x 3 filter mask in figure, the procedure
is to compute the sum of products of the mask
coefficients with the intensity values in the
region encompassed by the mask i.e. the
response of the mask at the center point of the
region is
31
A general 3 x 3
spatial filter mask.where zk is the intensity of the pixel whose
spatial location corresponds to the location of
the kth coefficient in the mask.
A. B. Shinde
32
Detection of Isolated Points
A. B. Shinde
Detection of Isolated Points
• Point detection can be achieved simply using the mask below:
33
 Points are detected at those pixels in the subsequent filtered image
that are above a set threshold
Point detection
(Laplacian) mask.
A. B. Shinde
Detection of Isolated Points
34
X-ray image of a
turbine blade
Result of point
detection
Result of
thresholding
Figure shows an X-ray image of a turbine blade from a jet engine. The
blade has a porosity (tiny hole) in the upper-right quadrant of the image,
and there is a single black pixel embedded within the porosity.
The single pixel is clearly visible in this image. This type of detection
process is rather specialized, because it is based on abrupt intensity
changes at single-pixel locations that are surrounded by a homogeneous
background in the area of the detector mask.
A. B. Shinde
35
Detection of line
A. B. Shinde
Detection of Line
• The next level of complexity is line detection.
• We know that for line detection we can expect second derivatives to
result in a stronger response and to produce thinner lines than first
derivatives.
36
Thus, we can use the Laplacian mask shown in figure for line detection
remembering that the double-line effect of the second derivative must be
handled properly.
The Laplacian detector shown is isotropic, so
its response is independent of direction (with
respect to the four directions of the 3 x 3
Laplacian mask: vertical, horizontal, and two
diagonals).
Laplacian mask
A. B. Shinde
Detection of Line
37
• Suppose that an image with a constant background and containing
various lines (oriented at 0°, ±45° and 90°) is filtered with the first mask.
• The maximum responses would occur at image locations in which a
horizontal line passed through the middle row of the mask.
• A similar experiment would reveal that the second mask responds best
to lines oriented at + 45°;
A. B. Shinde
Detection of Line
38
• The third (vertical) mask responds to vertical lines; and the fourth (-450)
mask to lines in the - 45° direction.
• The preferred direction of each mask is weighted with a larger coefficient
(i.e., 2) than other possible directions.
• The coefficients in each mask sum to zero, indicating a zero response in
areas of constant intensity.
A. B. Shinde
39
Detection of Edge
A. B. Shinde
Edge Detection
 Edge Models:
• Edge models are classified according to their
intensity profiles.
• A step edge involves a transition between two
intensity levels occurring ideally over the
distance of 1 pixel.
• Figure shows a section of a vertical step edge
and a horizontal intensity profile through the
edge.
• Step edges occur, in images generated by a
computer for use in areas such as solid
modeling and animation.
40
Step edge
A. B. Shinde
Edge Detection
 Edge Models:
• Digital images have blurred and noisy edges.
Edges are more closely modeled as having an
intensity ramp profile.
• The slope of the ramp is inversely proportional to
the degree of blurring in the edge.
• Thin (1 pixel thick) path doesnot exist.
41
ramp edge
A. B. Shinde
Edge Detection
 Edge Models:
• Roof edge characteristics are as illustrated in
figure.
• Roof edges are models of lines through a
region, with the base (width) of a roof edge
being determined by the thickness and
sharpness of the line.
• When its base is 1 pixel wide, a roof edge is
really nothing more than a 1-pixel-thick line
running through a region in an image.
42
roof edge
A. B. Shinde
Edge Detection
• Figure on left side shows the image in which the intensity is gradually
increasing from left to right.
• Right side figure shows a horizontal intensity profile as well as first and
second derivatives of the intensity profile.
43
A. B. Shinde
Edge Detection
• Three fundamental steps in edge detection:
1. Image smoothing for noise reduction.
2. Detection of edge points.
3. Edge localization.
44
A. B. Shinde
45
Thresholding
A. B. Shinde
Thresholding
• Basics of intensity thresholding:
• Suppose that the intensity histogram in figure corresponds to an f(x, y)
image, composed of light objects on a dark background.
• One obvious way to extract the objects from the background is to select
a threshold T, that separates these modes.
• Then, any point (x, y) in the image at which f(x, y) > T, is called an object
point; otherwise, the point is called a background point. In other words,
the segmented image g(x, y) , is given by
46
A. B. Shinde
Thresholding
 Basics of intensity thresholding:
• When T is a constant applicable over an entire image, the above
equation is referred to as global thresholding.
• When the value of T changes over an image, we use the term variable
thresholding.
• The term local or regional thresholding is used sometimes to denote
variable thresholding in which the value of T at any point (x, y) in an
image depends on properties of a neighborhood of (x, y).
• If T depends on the spatial coordinates (x, y), then variable thresholding
is often referred to as dynamic or adaptive thresholding.
47
A. B. Shinde
Thresholding
 Basics of intensity thresholding:
• Figure shows a more difficult thresholding problem involving a histogram
with three dominant modes, two types of light objects on a dark
background.
• Here, multiple thresholding classifies a point (x, y) as belonging to the
background if f(x, y) ≤ T1, to one object class if T1 ≤ f(x, y) ≤ T2 and to the
other object class if f(x, y) ≤ T2.
• That is, the segmented image is given by
48
where a, b and c are any three distinct
intensity values.
A. B. Shinde
Thresholding
 Role of noise in image thresholding:
• Figure shows simple noise free image, so its
histogram consists of two “spike” modes.
• Segmenting this image into two regions is a trivial
task involving a threshold placed anywhere
between the two modes.
49
A. B. Shinde
Thresholding
 Role of noise in image thresholding:
• Figure shows the corrupted image by Gaussian
noise of zero mean and a standard deviation of 10
intensity levels.
• Corresponding histogram modes are now
broader, the depth of the valley between them is
sufficient to make the modes easy to separate.
• A threshold placed midway between the two
peaks would do a nice job of segmenting the
image.
50
A. B. Shinde
Thresholding
 Role of noise in image thresholding:
• Figure shows the result of corrupting the image
with Gaussian noise of zero mean and a standard
deviation of 50 intensity levels.
• As the histogram shows, the situation is much
more serious now, as there is no way to
differentiate between the two modes.
• Without additional processing we have little hope
of finding a suitable threshold for segmenting this
image.
51
A. B. Shinde
Thresholding
 Global Thresholding:
• When the intensity distributions of objects and background pixels are
sufficiently distinct, it is possible to use a single (global) threshold
applicable over the entire image.
• In most applications, there is usually enough variability between images,
an algorithm capable of automatically estimating the threshold value for
each image is required.
52
A. B. Shinde
Thresholding
 Global Thresholding:
• The following iterative algorithm can be used for this purpose:
1. Select an initial estimate for the global threshold T,
2. Segment the image using equation of T. This will produce two groups of
pixels: G1 consisting of all pixels with intensity values > T, and consisting
of pixels with values ≤ T
3. Compute the average (mean) intensity values m1 and m2 for the pixels in
G1 and G2 respectively.
4. Compute a new threshold value:
53
5. Repeat Steps 2 through 4 until the difference between values of T in
successive iterations is smaller than a predefined parameter Δ T
A. B. Shinde
Thresholding
 Global Thresholding Using Otsu’s Method:
• The objective of thresholding is to minimize the average error incurred in
assigning pixels to two or more groups (also called classes).
• This problem is known to have an elegant closed-form solution known
as the Bayes decision rule.
• The solution is based on only two parameters: the probability density
function (PDF) of the intensity levels of each class and the probability
that each class occurs in a given application.
54
A. B. Shinde
Thresholding
 Global Thresholding Using Otsu’s Method:
• Otsu’s method is optimum in the sense that it maximizes the between-
class variance, a well-known measure used in statistical discriminant
analysis.
• The basic idea is that well-thresholded classes should be distinct with
respect to the intensity values of their pixels and, conversely, that a
threshold giving the best separation between classes in terms of their
intensity values would be the best (optimum) threshold.
• In addition to its optimality, Otsu’s method has the important property
that it is based entirely on computations performed on the histogram of
an image, an easily obtainable 1-D array.
55
A. B. Shinde
Thresholding
 Global Thresholding Using Otsu’s Method:
56
Noisy fingerprint Histogram Segmented result using
a global threshold
A. B. Shinde
Thresholding
 Global Thresholding Using Otsu’s Method:
57
Noisy image histogram Result using Otsu’s
method
Noisy image smoothed using
5 x 5 averaging mask
histogram Result using Otsu’s
method
A. B. Shinde
58
Region Based Segmentation
A. B. Shinde
Region Based Segmentation
 Region Growing:
• Region growing is a procedure that groups pixels or subregions into
larger regions based on predefined criteria for growth.
• The basic approach is to start with a set of “seed” points and from these
grow regions by appending to each seed those neighboring pixels that
have predefined properties similar to the seed (such as specific ranges
of intensity or color).
59
A. B. Shinde
Region Based Segmentation
 Region Growing:
• When a prior information is not available, the procedure is to compute at
every pixel the same set of properties that ultimately will be used to
assign pixels to regions during the growing process.
• If the result of these computations shows clusters of values, the pixels
whose properties place them near the centroid of these clusters can be
used as seeds.
60
A. B. Shinde
Region Based Segmentation
 Region Growing:
• Let:
• f(x, y) denote an input image array;
• S(x, y) denote a seed array containing 1s at the locations of seed points
and 0s elsewhere; and
• Q denote a predicate to be applied at each location (x, y).
• Arrays f and S are assumed to be of the same size.
61
A. B. Shinde
Region Based Segmentation
 Region Growing:
 A basic region-growing algorithm based on 8-connectivity may be stated
as follows.
1. Find all connected components in S(x, y) and erode each connected
component to one pixel; label all such pixels found as 1. All other pixels
in S are labeled 0.
2. Form an image fQ such that, at a pair of coordinates (x, y), let fQ(x, y) =1
if the input image satisfies the given predicate Q, at those coordinates;
otherwise, let fQ(x, y) =0
3. Let g be an image formed by appending to each seed point in S all the 1-
valued points in fQ that are 8-connected to that seed point.
4. Label each connected component in g with a different region label (e.g. 1,
2, 3, ... ).This is the segmented image obtained by region growing.
62
A. B. Shinde
Region Based Segmentation
 Region Growing:
63
(a) X-ray image of a
defective weld.
(b) Histogram.
(c) Initial seed image.
(d) Final seed image
(e) Absolute value of the
difference between
(a) and (c).
(f) Histogram of (e).
(g) Difference image
thresholded using
dual thresholds.
(h) Difference image
thresholded with the
smallest of the dual
thresholds.
(i) Segmentation result
obtained by region
growing.
a b c
d e f
g h i
A. B. Shinde
Region Based Segmentation
 Region Splitting and Merging:
• An alternative to region growing is to subdivide an image initially into a
set of arbitrary, disjoint regions and then merge and/or split the regions
in an attempt to satisfy the conditions of segmentation.
• Let R represent the entire image region and select a predicate Q.
• One approach for segmenting R is to subdivide it successively into
smaller and smaller quadrant regions so that, for any region
Ri, Q(Ri) = TRUE.
• We start with the entire region.
• If Q(R) = FALSE we divide the image into quadrants.
• If Q is FALSE for any quadrant, we subdivide that quadrant into
subquadrants, and so on.
64
A. B. Shinde
Region Based Segmentation
 Region Splitting and Merging:
• This particular splitting technique has a convenient representation in the
form of so-called quadtrees, that is, trees in which each node has
exactly four descendants, as figure shows (quadregions or
quadimages).
• The root of the tree corresponds to the entire image and that each node
corresponds to the subdivision of a node into four descendant nodes.
65
A. B. Shinde
Region Based Segmentation
66
 Region Splitting and Merging:
Image of the
Cygnus Loop
Supernova
566 x 566
smallest allowed
quadregion to
sizes of 32 x 32
smallest allowed
quadregion to
sizes of 16 x 16
smallest allowed
quadregion to
sizes of 8 x 8
This presentation is published only for educational purpose
abshinde.eln@gmail.com

Weitere ähnliche Inhalte

Was ist angesagt?

Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationMostafa G. M. Mostafa
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processingVARUN KUMAR
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: BasicsA B Shinde
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image CompressionMathankumar S
 
Hough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul IslamHough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul IslamNazmul Islam
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsKalyan Acharjya
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGmuthu181188
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Moe Moe Myint
 
Predictive coding
Predictive codingPredictive coding
Predictive codingp_ayal
 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing BasicsA B Shinde
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processingasodariyabhavesh
 
Digital image processing
Digital image processingDigital image processing
Digital image processingABIRAMI M
 

Was ist angesagt? (20)

Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
 
Watershed
WatershedWatershed
Watershed
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
digital image processing
digital image processingdigital image processing
digital image processing
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Hough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul IslamHough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul Islam
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)
 
Predictive coding
Predictive codingPredictive coding
Predictive coding
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Canny Edge Detection
Canny Edge DetectionCanny Edge Detection
Canny Edge Detection
 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing Basics
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
 
Segmentation
SegmentationSegmentation
Segmentation
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 

Ähnlich wie Edge Detection and Segmentation

image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptxmohan134666
 
Seminar report on edge detection of video using matlab code
Seminar report on edge detection of video using matlab codeSeminar report on edge detection of video using matlab code
Seminar report on edge detection of video using matlab codeBhushan Deore
 
Fuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge DetectionFuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge DetectionDawn Raider Gupta
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptxNaveenKumar5162
 
09 cie552 image_featuresi
09 cie552 image_featuresi09 cie552 image_featuresi
09 cie552 image_featuresiElsayed Hemayed
 
Real time Canny edge detection
Real time Canny edge detectionReal time Canny edge detection
Real time Canny edge detectionShashank Kapoor
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfvikasmittal92
 
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge DetectionEdge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge Detectioncihantopal2
 
Denoising and Edge Detection Using Sobelmethod
Denoising and Edge Detection Using SobelmethodDenoising and Edge Detection Using Sobelmethod
Denoising and Edge Detection Using SobelmethodIJMER
 
A New Technique of Extraction of Edge Detection Using Digital Image Processing
A New Technique of Extraction of Edge Detection Using Digital  Image Processing A New Technique of Extraction of Edge Detection Using Digital  Image Processing
A New Technique of Extraction of Edge Detection Using Digital Image Processing IJMER
 
Exploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny AlgorithmExploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny AlgorithmPrasad Thakur
 
Image enhancement
Image enhancementImage enhancement
Image enhancementAyaelshiwi
 
Module-V 096.pdf
Module-V 096.pdfModule-V 096.pdf
Module-V 096.pdfSamrajECE
 
Image representation
Image representationImage representation
Image representationRahul Dadwal
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filtersA B Shinde
 
12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.pptAJAYMALIK97
 

Ähnlich wie Edge Detection and Segmentation (20)

PPT s06-machine vision-s2
PPT s06-machine vision-s2PPT s06-machine vision-s2
PPT s06-machine vision-s2
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptx
 
Seminar report on edge detection of video using matlab code
Seminar report on edge detection of video using matlab codeSeminar report on edge detection of video using matlab code
Seminar report on edge detection of video using matlab code
 
Fuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge DetectionFuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge Detection
 
Segmentation Techniques -I
Segmentation Techniques -ISegmentation Techniques -I
Segmentation Techniques -I
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptx
 
09 cie552 image_featuresi
09 cie552 image_featuresi09 cie552 image_featuresi
09 cie552 image_featuresi
 
EDGE DETECTION
EDGE DETECTIONEDGE DETECTION
EDGE DETECTION
 
Real time Canny edge detection
Real time Canny edge detectionReal time Canny edge detection
Real time Canny edge detection
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdf
 
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge DetectionEdge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
 
Denoising and Edge Detection Using Sobelmethod
Denoising and Edge Detection Using SobelmethodDenoising and Edge Detection Using Sobelmethod
Denoising and Edge Detection Using Sobelmethod
 
A New Technique of Extraction of Edge Detection Using Digital Image Processing
A New Technique of Extraction of Edge Detection Using Digital  Image Processing A New Technique of Extraction of Edge Detection Using Digital  Image Processing
A New Technique of Extraction of Edge Detection Using Digital Image Processing
 
Exploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny AlgorithmExploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny Algorithm
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Edge Detection
Edge Detection Edge Detection
Edge Detection
 
Module-V 096.pdf
Module-V 096.pdfModule-V 096.pdf
Module-V 096.pdf
 
Image representation
Image representationImage representation
Image representation
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt
 

Mehr von A B Shinde

Communication System Basics
Communication System BasicsCommunication System Basics
Communication System BasicsA B Shinde
 
MOSFETs: Single Stage IC Amplifier
MOSFETs: Single Stage IC AmplifierMOSFETs: Single Stage IC Amplifier
MOSFETs: Single Stage IC AmplifierA B Shinde
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainA B Shinde
 
Resume Writing
Resume WritingResume Writing
Resume WritingA B Shinde
 
Blooms Taxonomy in Engineering Education
Blooms Taxonomy in Engineering EducationBlooms Taxonomy in Engineering Education
Blooms Taxonomy in Engineering EducationA B Shinde
 
ISE 7.1i Software
ISE 7.1i SoftwareISE 7.1i Software
ISE 7.1i SoftwareA B Shinde
 
VHDL Coding Syntax
VHDL Coding SyntaxVHDL Coding Syntax
VHDL Coding SyntaxA B Shinde
 
VLSI Testing Techniques
VLSI Testing TechniquesVLSI Testing Techniques
VLSI Testing TechniquesA B Shinde
 
Selecting Engineering Project
Selecting Engineering ProjectSelecting Engineering Project
Selecting Engineering ProjectA B Shinde
 
Interview Techniques
Interview TechniquesInterview Techniques
Interview TechniquesA B Shinde
 
Semiconductors
SemiconductorsSemiconductors
SemiconductorsA B Shinde
 
Diode Applications & Transistor Basics
Diode Applications & Transistor BasicsDiode Applications & Transistor Basics
Diode Applications & Transistor BasicsA B Shinde
 
Electronics Basic Concepts
Electronics Basic ConceptsElectronics Basic Concepts
Electronics Basic ConceptsA B Shinde
 
Multithreading
MultithreadingMultithreading
MultithreadingA B Shinde
 
Multiprocessor
MultiprocessorMultiprocessor
MultiprocessorA B Shinde
 
Multicore Computers
Multicore ComputersMulticore Computers
Multicore ComputersA B Shinde
 
Intel CPU Manufacturing Process
Intel CPU Manufacturing ProcessIntel CPU Manufacturing Process
Intel CPU Manufacturing ProcessA B Shinde
 

Mehr von A B Shinde (20)

Communication System Basics
Communication System BasicsCommunication System Basics
Communication System Basics
 
MOSFETs: Single Stage IC Amplifier
MOSFETs: Single Stage IC AmplifierMOSFETs: Single Stage IC Amplifier
MOSFETs: Single Stage IC Amplifier
 
MOSFETs
MOSFETsMOSFETs
MOSFETs
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Resume Format
Resume FormatResume Format
Resume Format
 
Resume Writing
Resume WritingResume Writing
Resume Writing
 
Blooms Taxonomy in Engineering Education
Blooms Taxonomy in Engineering EducationBlooms Taxonomy in Engineering Education
Blooms Taxonomy in Engineering Education
 
ISE 7.1i Software
ISE 7.1i SoftwareISE 7.1i Software
ISE 7.1i Software
 
VHDL Coding Syntax
VHDL Coding SyntaxVHDL Coding Syntax
VHDL Coding Syntax
 
VHDL Programs
VHDL ProgramsVHDL Programs
VHDL Programs
 
VLSI Testing Techniques
VLSI Testing TechniquesVLSI Testing Techniques
VLSI Testing Techniques
 
Selecting Engineering Project
Selecting Engineering ProjectSelecting Engineering Project
Selecting Engineering Project
 
Interview Techniques
Interview TechniquesInterview Techniques
Interview Techniques
 
Semiconductors
SemiconductorsSemiconductors
Semiconductors
 
Diode Applications & Transistor Basics
Diode Applications & Transistor BasicsDiode Applications & Transistor Basics
Diode Applications & Transistor Basics
 
Electronics Basic Concepts
Electronics Basic ConceptsElectronics Basic Concepts
Electronics Basic Concepts
 
Multithreading
MultithreadingMultithreading
Multithreading
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
Multicore Computers
Multicore ComputersMulticore Computers
Multicore Computers
 
Intel CPU Manufacturing Process
Intel CPU Manufacturing ProcessIntel CPU Manufacturing Process
Intel CPU Manufacturing Process
 

Kürzlich hochgeladen

The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 

Kürzlich hochgeladen (20)

The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 

Edge Detection and Segmentation

  • 1. Edge Detection & Segmentation Mr. A. B. Shinde
  • 2. A. B. Shinde Contents…  Detection of discontinuities:  Point,  Line and  Edge detection,  Thresholding,  Region based segmentation. 2
  • 4. A. B. Shinde Introduction • Segmentation subdivides an image into its constituent regions or objects. • The level of detail to which the subdivision is carried depends on the problem being solved i.e. segmentation should stop when the objects or regions of interest in an application have been detected. • For example, in the automated inspection of electronic assemblies, determining the presence or absence of components or broken connection paths. 4
  • 5. A. B. Shinde Introduction • Segmentation of nontrivial images is one of the most difficult tasks in image processing. • Segmentation accuracy determines the eventual success or failure of computerized analysis procedures. • A good example is the use of infrared imaging by the military to detect objects with strong heat signatures, such as equipment and troops in motion. 5
  • 7. A. B. Shinde Introduction 7 Original Document Page Structural Layout Functional Layout Segmentation: Example
  • 8. A. B. Shinde Introduction 8 Original Image Text line bounding boxes Word bounding boxes Segmentation: Example
  • 10. A. B. Shinde Edge Detection • In an image, an edge is a curve that follows a path of rapid change in image intensity. • Edges are often associated with the boundaries of objects in a scene. 10
  • 11. A. B. Shinde Edge Detection • In general, edge detection is the process that attempts to characterize the intensity changes in terms of the physical processes that have originated them. • Edges provide the topology and structure information of objects in an image. • Edge detection can be used for region segmentation, feature extraction and object or boundary description 11
  • 12. A. B. Shinde Edge Detection Techniques • The process of edge detection is broadly classified in to two broad techniques • 1. Derivative Approach – Edges are detected by taking derivative followed by thresholding. (Robert Operator and 4-neighbour operator) – They also incorporate noise cleaning scheme (Prewitt and Sobel Operator)  Edge masking means two dimensional derivative computation • 2. Pattern Fitting Approach – Here, a series of edge approximating functions in the form of edge templates over a small neighborhood are analyzed. Parameters along with properties corresponding to the best fitting function are determined. 12
  • 13. A. B. Shinde Edge Detection Techniques • Following are some approaches to complete the process of generation of edge map which may involve some or all of them: – Noise Smoothing – Edge Localization – Edge Enhancement – Edge Linking – Edge Following – Edge Extraction 13
  • 14. A. B. Shinde Edge Detection Techniques • Noise Smoothing – As we know, “significant intensity differential” represents an “edge”. – Uncontrolled illumination of light, would produce intensity differential at almost every point. – So, all of these differentials are located as edges. – Hence, it becomes essential to smoothen some of these insignificant intensity differentials which corresponds to false edges therefore this step is called as Noise Smoothing. 14
  • 15. A. B. Shinde Edge Detection Techniques – Edge Localization – Filtering for noise smoothing will definitely have blurring effect to some extent on the intensity map of the image. – Sharp edges that corresponds to step change in intensity is going to be averaged and peak becomes flattened in this process. – Edge Localization process will mark the edge pixels to the large extent. 15
  • 16. A. B. Shinde Edge Detection Techniques – Edge Enhancement – After edge localization, depending on change in intensity, edge strength is determined along with orientation of edge pixel. – Weak edges will corresponds to weak intensities and strong edges to strong intensities. – The process of edge enhancement filters out edges due to noise pixels. – Edge Linking & Edge Following – Edge Linking process takes an unordered set of edge pixels produced by an edge detector as an input to form an ordered list of edges. – Edge following process takes entire edge strength to form geometric primitives such as lines or curves. 16
  • 17. A. B. Shinde 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 17
  • 18. A. B. Shinde Neighborhood Operations • Neighbourhood operations simply operate on a larger neighbourhood of pixels than point operations • Neighbourhoods are mostly a rectangle around a central pixel • Any size rectangle and any shape filter are possible 18 Origin x y Image f (x, y) (x, y) Neighbourhood
  • 19. A. B. Shinde Neighborhood Operations • For each pixel in the origin image, the outcome is written on the same location at the target image. 19 Origin x y Image f (x, y) (x, y) Neighbourhood
  • 20. A. B. Shinde Neighborhood Operations 20 j k l m n o p q r Origin x y Image f (x, y) eprocessed = n*e + j*a + k*b + l*c + m*d + o*f + p*g + q*h + r*i Filter (w) Simple 3*3 Neighbourhood e 3*3 Filter a b c d e f g h i Original Image Pixels * The above is repeated for every pixel in the original image to generate the filtered image
  • 21. A. B. Shinde 21 Point, Line & Edge Detection
  • 22. A. B. Shinde Point, Line, and Edge Detection • Segmentation methods are based on detecting sharp, local changes in intensity. • Edge pixels are pixels at which the intensity of an image function changes abruptly, and edges (or edge segments) are sets of connected edge pixels. • A line may be viewed as an edge segment in which the intensity of the background on either side of the line is either much higher or much lower than the intensity of the line pixels. • Similarly, an isolated point may be viewed as a line whose length and width are equal to one pixel. 22
  • 23. A. B. Shinde Point, Line, and Edge Detection • Local averaging smooths an image and averaging is analogous to integration • Abrupt, local changes in intensity can be detected using derivatives, first- and second-order derivatives are well suited for this purpose. • Derivatives of a digital function are defined in terms of differences. • Any approximation used for a first derivative 1. Must be zero in areas of constant intensity; 2. Must be nonzero at the onset of an intensity step or ramp; and 3. Must be nonzero at points along an intensity ramp. 23
  • 24. A. B. Shinde Point, Line, and Edge Detection • Similarly, an approximation used for a second derivative 1. Must be zero in areas of constant intensity; 2. Must be nonzero at the onset and end of an intensity step or ramp; and 3. Must be zero along intensity ramps. • Because we are dealing with digital quantities whose values are finite, the maximum possible intensity change is also finite. 24
  • 25. A. B. Shinde Point, Line, and Edge Detection • We obtain an approximation to the first-order derivative at point of a one- dimensional function f(x) by expanding the function f(x + Δ x) into a Taylor series about x letting Δ x = 1 and keeping only the linear terms. • The result is the digital difference 25 We used a partial derivative here for consistency in notation when we consider an image function of two variables f(x, y), at which time we will be dealing with partial derivatives along the two spatial axes. Clearly, δf / δ x = df / dx when is a function of only one variable.
  • 26. A. B. Shinde Point, Line, and Edge Detection  We obtain an expression for the second derivative by differentiating above equation with respect to x: 26 This expansion is about point x +1
  • 27. A. B. Shinde Point, Line, and Edge Detection • Our interest is on the second derivative about point x so we subtract 1 from the arguments in the preceding expression and obtain the result 27
  • 28. A. B. Shinde Point, Line, and Edge Detection • Figure shows an image that contains various solid objects, a line, and a single noise point. 28 Figure shows a horizontal intensity profile of the image approximately through its center, including the isolated point. Transitions in intensity between the solid objects and the background along the scan line show two types of edges: ramp edges (on the left) and step edges (on the right). Intensity transitions involving thin objects such as lines often are referred to as roof edges.
  • 29. A. B. Shinde Point, Line, and Edge Detection 29 Figure shows a simplification of the profile. In this simplified diagram the transition in the ramp spans four pixels, the noise point is a single pixel, the line is three pixels thick, and the transition of the intensity step takes place between adjacent pixels. The number of intensity levels was limited to eight for simplicity.
  • 30. A. B. Shinde Point, Line, and Edge Detection • In summary, we arrive at the following conclusions: 1. First-order derivatives generally produce thicker edges in an image. 2. Second-order derivatives have a stronger response to fine detail, such as thin lines, isolated points, and noise. 3. Second-order derivatives produce a double-edge response at ramp and step transitions in intensity. 4. The sign of the second derivative can be used to determine whether a transition into an edge is from light to dark or dark to light. 30
  • 31. A. B. Shinde Point, Line, and Edge Detection • The approach of choice for computing first and second derivatives at every pixel location in an image is to use spatial filters. • For the 3 x 3 filter mask in figure, the procedure is to compute the sum of products of the mask coefficients with the intensity values in the region encompassed by the mask i.e. the response of the mask at the center point of the region is 31 A general 3 x 3 spatial filter mask.where zk is the intensity of the pixel whose spatial location corresponds to the location of the kth coefficient in the mask.
  • 32. A. B. Shinde 32 Detection of Isolated Points
  • 33. A. B. Shinde Detection of Isolated Points • Point detection can be achieved simply using the mask below: 33  Points are detected at those pixels in the subsequent filtered image that are above a set threshold Point detection (Laplacian) mask.
  • 34. A. B. Shinde Detection of Isolated Points 34 X-ray image of a turbine blade Result of point detection Result of thresholding Figure shows an X-ray image of a turbine blade from a jet engine. The blade has a porosity (tiny hole) in the upper-right quadrant of the image, and there is a single black pixel embedded within the porosity. The single pixel is clearly visible in this image. This type of detection process is rather specialized, because it is based on abrupt intensity changes at single-pixel locations that are surrounded by a homogeneous background in the area of the detector mask.
  • 36. A. B. Shinde Detection of Line • The next level of complexity is line detection. • We know that for line detection we can expect second derivatives to result in a stronger response and to produce thinner lines than first derivatives. 36 Thus, we can use the Laplacian mask shown in figure for line detection remembering that the double-line effect of the second derivative must be handled properly. The Laplacian detector shown is isotropic, so its response is independent of direction (with respect to the four directions of the 3 x 3 Laplacian mask: vertical, horizontal, and two diagonals). Laplacian mask
  • 37. A. B. Shinde Detection of Line 37 • Suppose that an image with a constant background and containing various lines (oriented at 0°, ±45° and 90°) is filtered with the first mask. • The maximum responses would occur at image locations in which a horizontal line passed through the middle row of the mask. • A similar experiment would reveal that the second mask responds best to lines oriented at + 45°;
  • 38. A. B. Shinde Detection of Line 38 • The third (vertical) mask responds to vertical lines; and the fourth (-450) mask to lines in the - 45° direction. • The preferred direction of each mask is weighted with a larger coefficient (i.e., 2) than other possible directions. • The coefficients in each mask sum to zero, indicating a zero response in areas of constant intensity.
  • 40. A. B. Shinde Edge Detection  Edge Models: • Edge models are classified according to their intensity profiles. • A step edge involves a transition between two intensity levels occurring ideally over the distance of 1 pixel. • Figure shows a section of a vertical step edge and a horizontal intensity profile through the edge. • Step edges occur, in images generated by a computer for use in areas such as solid modeling and animation. 40 Step edge
  • 41. A. B. Shinde Edge Detection  Edge Models: • Digital images have blurred and noisy edges. Edges are more closely modeled as having an intensity ramp profile. • The slope of the ramp is inversely proportional to the degree of blurring in the edge. • Thin (1 pixel thick) path doesnot exist. 41 ramp edge
  • 42. A. B. Shinde Edge Detection  Edge Models: • Roof edge characteristics are as illustrated in figure. • Roof edges are models of lines through a region, with the base (width) of a roof edge being determined by the thickness and sharpness of the line. • When its base is 1 pixel wide, a roof edge is really nothing more than a 1-pixel-thick line running through a region in an image. 42 roof edge
  • 43. A. B. Shinde Edge Detection • Figure on left side shows the image in which the intensity is gradually increasing from left to right. • Right side figure shows a horizontal intensity profile as well as first and second derivatives of the intensity profile. 43
  • 44. A. B. Shinde Edge Detection • Three fundamental steps in edge detection: 1. Image smoothing for noise reduction. 2. Detection of edge points. 3. Edge localization. 44
  • 46. A. B. Shinde Thresholding • Basics of intensity thresholding: • Suppose that the intensity histogram in figure corresponds to an f(x, y) image, composed of light objects on a dark background. • One obvious way to extract the objects from the background is to select a threshold T, that separates these modes. • Then, any point (x, y) in the image at which f(x, y) > T, is called an object point; otherwise, the point is called a background point. In other words, the segmented image g(x, y) , is given by 46
  • 47. A. B. Shinde Thresholding  Basics of intensity thresholding: • When T is a constant applicable over an entire image, the above equation is referred to as global thresholding. • When the value of T changes over an image, we use the term variable thresholding. • The term local or regional thresholding is used sometimes to denote variable thresholding in which the value of T at any point (x, y) in an image depends on properties of a neighborhood of (x, y). • If T depends on the spatial coordinates (x, y), then variable thresholding is often referred to as dynamic or adaptive thresholding. 47
  • 48. A. B. Shinde Thresholding  Basics of intensity thresholding: • Figure shows a more difficult thresholding problem involving a histogram with three dominant modes, two types of light objects on a dark background. • Here, multiple thresholding classifies a point (x, y) as belonging to the background if f(x, y) ≤ T1, to one object class if T1 ≤ f(x, y) ≤ T2 and to the other object class if f(x, y) ≤ T2. • That is, the segmented image is given by 48 where a, b and c are any three distinct intensity values.
  • 49. A. B. Shinde Thresholding  Role of noise in image thresholding: • Figure shows simple noise free image, so its histogram consists of two “spike” modes. • Segmenting this image into two regions is a trivial task involving a threshold placed anywhere between the two modes. 49
  • 50. A. B. Shinde Thresholding  Role of noise in image thresholding: • Figure shows the corrupted image by Gaussian noise of zero mean and a standard deviation of 10 intensity levels. • Corresponding histogram modes are now broader, the depth of the valley between them is sufficient to make the modes easy to separate. • A threshold placed midway between the two peaks would do a nice job of segmenting the image. 50
  • 51. A. B. Shinde Thresholding  Role of noise in image thresholding: • Figure shows the result of corrupting the image with Gaussian noise of zero mean and a standard deviation of 50 intensity levels. • As the histogram shows, the situation is much more serious now, as there is no way to differentiate between the two modes. • Without additional processing we have little hope of finding a suitable threshold for segmenting this image. 51
  • 52. A. B. Shinde Thresholding  Global Thresholding: • When the intensity distributions of objects and background pixels are sufficiently distinct, it is possible to use a single (global) threshold applicable over the entire image. • In most applications, there is usually enough variability between images, an algorithm capable of automatically estimating the threshold value for each image is required. 52
  • 53. A. B. Shinde Thresholding  Global Thresholding: • The following iterative algorithm can be used for this purpose: 1. Select an initial estimate for the global threshold T, 2. Segment the image using equation of T. This will produce two groups of pixels: G1 consisting of all pixels with intensity values > T, and consisting of pixels with values ≤ T 3. Compute the average (mean) intensity values m1 and m2 for the pixels in G1 and G2 respectively. 4. Compute a new threshold value: 53 5. Repeat Steps 2 through 4 until the difference between values of T in successive iterations is smaller than a predefined parameter Δ T
  • 54. A. B. Shinde Thresholding  Global Thresholding Using Otsu’s Method: • The objective of thresholding is to minimize the average error incurred in assigning pixels to two or more groups (also called classes). • This problem is known to have an elegant closed-form solution known as the Bayes decision rule. • The solution is based on only two parameters: the probability density function (PDF) of the intensity levels of each class and the probability that each class occurs in a given application. 54
  • 55. A. B. Shinde Thresholding  Global Thresholding Using Otsu’s Method: • Otsu’s method is optimum in the sense that it maximizes the between- class variance, a well-known measure used in statistical discriminant analysis. • The basic idea is that well-thresholded classes should be distinct with respect to the intensity values of their pixels and, conversely, that a threshold giving the best separation between classes in terms of their intensity values would be the best (optimum) threshold. • In addition to its optimality, Otsu’s method has the important property that it is based entirely on computations performed on the histogram of an image, an easily obtainable 1-D array. 55
  • 56. A. B. Shinde Thresholding  Global Thresholding Using Otsu’s Method: 56 Noisy fingerprint Histogram Segmented result using a global threshold
  • 57. A. B. Shinde Thresholding  Global Thresholding Using Otsu’s Method: 57 Noisy image histogram Result using Otsu’s method Noisy image smoothed using 5 x 5 averaging mask histogram Result using Otsu’s method
  • 58. A. B. Shinde 58 Region Based Segmentation
  • 59. A. B. Shinde Region Based Segmentation  Region Growing: • Region growing is a procedure that groups pixels or subregions into larger regions based on predefined criteria for growth. • The basic approach is to start with a set of “seed” points and from these grow regions by appending to each seed those neighboring pixels that have predefined properties similar to the seed (such as specific ranges of intensity or color). 59
  • 60. A. B. Shinde Region Based Segmentation  Region Growing: • When a prior information is not available, the procedure is to compute at every pixel the same set of properties that ultimately will be used to assign pixels to regions during the growing process. • If the result of these computations shows clusters of values, the pixels whose properties place them near the centroid of these clusters can be used as seeds. 60
  • 61. A. B. Shinde Region Based Segmentation  Region Growing: • Let: • f(x, y) denote an input image array; • S(x, y) denote a seed array containing 1s at the locations of seed points and 0s elsewhere; and • Q denote a predicate to be applied at each location (x, y). • Arrays f and S are assumed to be of the same size. 61
  • 62. A. B. Shinde Region Based Segmentation  Region Growing:  A basic region-growing algorithm based on 8-connectivity may be stated as follows. 1. Find all connected components in S(x, y) and erode each connected component to one pixel; label all such pixels found as 1. All other pixels in S are labeled 0. 2. Form an image fQ such that, at a pair of coordinates (x, y), let fQ(x, y) =1 if the input image satisfies the given predicate Q, at those coordinates; otherwise, let fQ(x, y) =0 3. Let g be an image formed by appending to each seed point in S all the 1- valued points in fQ that are 8-connected to that seed point. 4. Label each connected component in g with a different region label (e.g. 1, 2, 3, ... ).This is the segmented image obtained by region growing. 62
  • 63. A. B. Shinde Region Based Segmentation  Region Growing: 63 (a) X-ray image of a defective weld. (b) Histogram. (c) Initial seed image. (d) Final seed image (e) Absolute value of the difference between (a) and (c). (f) Histogram of (e). (g) Difference image thresholded using dual thresholds. (h) Difference image thresholded with the smallest of the dual thresholds. (i) Segmentation result obtained by region growing. a b c d e f g h i
  • 64. A. B. Shinde Region Based Segmentation  Region Splitting and Merging: • An alternative to region growing is to subdivide an image initially into a set of arbitrary, disjoint regions and then merge and/or split the regions in an attempt to satisfy the conditions of segmentation. • Let R represent the entire image region and select a predicate Q. • One approach for segmenting R is to subdivide it successively into smaller and smaller quadrant regions so that, for any region Ri, Q(Ri) = TRUE. • We start with the entire region. • If Q(R) = FALSE we divide the image into quadrants. • If Q is FALSE for any quadrant, we subdivide that quadrant into subquadrants, and so on. 64
  • 65. A. B. Shinde Region Based Segmentation  Region Splitting and Merging: • This particular splitting technique has a convenient representation in the form of so-called quadtrees, that is, trees in which each node has exactly four descendants, as figure shows (quadregions or quadimages). • The root of the tree corresponds to the entire image and that each node corresponds to the subdivision of a node into four descendant nodes. 65
  • 66. A. B. Shinde Region Based Segmentation 66  Region Splitting and Merging: Image of the Cygnus Loop Supernova 566 x 566 smallest allowed quadregion to sizes of 32 x 32 smallest allowed quadregion to sizes of 16 x 16 smallest allowed quadregion to sizes of 8 x 8
  • 67. This presentation is published only for educational purpose abshinde.eln@gmail.com