SlideShare a Scribd company logo
1 of 6
Edge detection is a problem of fundamental importance in image analysis. In typical images, edges
characterize object boundaries and are therefore useful for segmentation, registration, and identification of
objects in a scene. In this section, the construction, characteristics, and performance of a number of
gradient and zero-crossing edge operators will be presented.
An edge is a jump in intensity. The cross section of an edge has the shape of a ramp. An ideal edge is a
discontinuity (i.e., a ramp with an infinite slope). The first derivative assumes a local maximum at an edge.
For a continuous image , where xand y are the row and column coordinates respectively, we typically
consider the two directional derivatives and . Of particular interest in edge detection are
two functions that can be expressed in terms of these directional derivatives: the gradient magnitude and
the gradient orientation. The gradient magnitude is defined as
,
and the gradient orientation is given by
.
Local maxima of the gradient magnitude identify edges in . When the first derivative achieves a
maximum, the second derivative is zero. For this reason, an alternative edge -detection strategy is to locate
zeros of the second derivatives of . The differential operator used in these so-called zero-crossing
edge detectors is the Laplacian
.
This loads the package.
The following demonstration illustrates the principles of edge detection. We model a one -dimensional edge
with a simple smooth function, for example, . As the parameter alpha increases, the slope of
the edge gets steeper. Here we use .
This evaluates and plots the first and second derivatives of our "edge" function.
As expected, the result shows that maxima of the first derivative (green) and zero crossings of the second
derivative (blue) locate the center of our model edge. It can also be shown that the zero crossings are
independent of the steepness of the transition, while the gradient magnitude is directly related to the edge
slope.
In practice, finite difference approximations of first-order directional derivatives are used. These are
represented by a pair of masks, say and . Formally these are linear-phase FIR filters. A convolution of
the image with and gives two directional derivative images and respectively. The gradient
image is traditionally calculated as , or alternatively using [1]. A pixel
location is declared an edge location if the value of nabla (at point x, y) exceeds some threshold. The
locations of all edge points constitutes an edge map. The selection of a threshold value is an important
design decision that depends on a number of factors, such as image brightness, contrast, level of noise, and
even edge direction. Typically, the threshold is selected following an analysis of the gradient image
histogram. It is sometimes useful to calculate edge-direction information. This is given
by .
Edge Operators
Option of EdgeMagnitude
The method of computing the gradient magnitude is user selectable with option GradientType.
Gradient Edge Operators
A number of commonly used gradient operators are available.
Here are two common gradient edge operators.
Note that each of the Sobel edge masks is a combination of a digital differentiator in one of the spatial
directions and a smoothing operator in the other.
Here we read one of the example images and consider a subregion of the image.
We compute the gradient magnitude and edge direction using the Sobel mask.
To recover the edges, the gradient image must be segmented using a global or local (i.e., adaptive)
threshold operator. The choice of a threshold value determines the resulting segmentation and, therefore,
the perceived quality of the edge detector. It is useful to consider the cumulative histogram of the gradient
image in selecting an appropriate threshold value. Here we calculate the histogram and cumulative
histogram of the gradient magnitude image. In a typical approach, the top 10 to 20 percent of the largest
gradient values are selected as edge points. This is easily done based on an investigation of the cumulative
histogram.
The threshold can now be estimated visually or even calculated from the cumulative histogram by setting a
threshold at the 80 percent level.
We display the edge maps for three selected threshold values.
Based on visual inspection of the edge maps, it seems reasonable to accept the threshold value of t.
A zero-crossing edge operator was originally proposed by Marr and Hildreth [2]. They suggested that in
order to effectively detect intensity changes (edges), the operator needs to have two characteristics. First, it
must be a differential operator, taking either a first or second spatial derivative of the image. Second, it
should be capable of being tuned to act at any desired scale so that large filters can be used to detect blurry
shadow edges, and small ones can be used to detect sharply focused fine detail in the image. This led to the
so-called Laplacian-of-Gaussian edge operator. This is a compound operator that combines a smoothing
operation, using a Gaussian-shaped, linear-phase FIR filter, with a differentation operation, using a discrete
Laplacian. The edges are identified by the location of zero crossings (recall that the second derivative
changes sign in the vicinity of maxima of the first derivative).
Smoothing and Differentiating Filters
LaplacianFilter returns a number of common FIR filter approximations to the Laplacian operator. The
default argument value ( ) returns the minimum-variance discrete Laplacian subject to the conditions
that pixel noise is uncorrelated and has uniform variance [3]. The Laplacian is the lowest-order isotropic
(i.e., orientation-independent) operator.
This computes the Laplacian of the example image.
This shows the original and filtered images.
The zero crossings are clearly visible as they occur at the border between bright and dark areas of the
Laplacian image. The midtones cover areas of small responses to the Laplacian operator, which corresponds
to uniform (flat) brightness areas of the original image.
In order to mitigate the increase in pixel noise due to differentiation, the image is filtered with a lowpass
filter. This is accomplished by a Gaussian-shaped, linear-phase FIR filter. Since convolution is associative
and commutative, the two-step sequence can be reduced to one step by constructing a compound
operator. LoGFilter is a compound operator whose values are samples of the Laplacian of the bivariate
Gaussian function with variance .
Here we set and plot both the resulting function as a surface and the functions profile for .
Here we filter the example image using LoGFilter.
Shown below are the results of convolving the example image with a Laplacian-of-Gaussian filter followed by
zero-crossing detection. The latter is implemented with the function ZeroCrossing.

More Related Content

What's hot

TU1.L09.1 - APPLICATION OF POLARIMETRIC SAR TO EARTH REMOTE SENSING
TU1.L09.1	 - APPLICATION OF POLARIMETRIC SAR TO EARTH REMOTE SENSINGTU1.L09.1	 - APPLICATION OF POLARIMETRIC SAR TO EARTH REMOTE SENSING
TU1.L09.1 - APPLICATION OF POLARIMETRIC SAR TO EARTH REMOTE SENSING
grssieee
 
An automatic algorithm for object recognition and detection based on asift ke...
An automatic algorithm for object recognition and detection based on asift ke...An automatic algorithm for object recognition and detection based on asift ke...
An automatic algorithm for object recognition and detection based on asift ke...
Kunal Kishor Nirala
 
Image segmentation for high resolution images
Image segmentation for high resolution imagesImage segmentation for high resolution images
Image segmentation for high resolution images
jeet patalia
 

What's hot (20)

Research Analysis and Design of Geometric Transformations using Affine Geometry
Research Analysis and Design of Geometric Transformations using Affine GeometryResearch Analysis and Design of Geometric Transformations using Affine Geometry
Research Analysis and Design of Geometric Transformations using Affine Geometry
 
A comparison of SIFT, PCA-SIFT and SURF
A comparison of SIFT, PCA-SIFT and SURFA comparison of SIFT, PCA-SIFT and SURF
A comparison of SIFT, PCA-SIFT and SURF
 
TU1.L09.1 - APPLICATION OF POLARIMETRIC SAR TO EARTH REMOTE SENSING
TU1.L09.1	 - APPLICATION OF POLARIMETRIC SAR TO EARTH REMOTE SENSINGTU1.L09.1	 - APPLICATION OF POLARIMETRIC SAR TO EARTH REMOTE SENSING
TU1.L09.1 - APPLICATION OF POLARIMETRIC SAR TO EARTH REMOTE SENSING
 
Digital Image Processing - Frequency Filters
Digital Image Processing - Frequency FiltersDigital Image Processing - Frequency Filters
Digital Image Processing - Frequency Filters
 
Normalized averaging using adaptive applicability functions with applications...
Normalized averaging using adaptive applicability functions with applications...Normalized averaging using adaptive applicability functions with applications...
Normalized averaging using adaptive applicability functions with applications...
 
Feature Matching using SIFT algorithm
Feature Matching using SIFT algorithmFeature Matching using SIFT algorithm
Feature Matching using SIFT algorithm
 
An automatic algorithm for object recognition and detection based on asift ke...
An automatic algorithm for object recognition and detection based on asift ke...An automatic algorithm for object recognition and detection based on asift ke...
An automatic algorithm for object recognition and detection based on asift ke...
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
 
Ijetcas14 594
Ijetcas14 594Ijetcas14 594
Ijetcas14 594
 
Orb feature by nitin
Orb feature by nitinOrb feature by nitin
Orb feature by nitin
 
Evaluation of the Sensitivity of Seismic Inversion Algorithms to Different St...
Evaluation of the Sensitivity of Seismic Inversion Algorithms to Different St...Evaluation of the Sensitivity of Seismic Inversion Algorithms to Different St...
Evaluation of the Sensitivity of Seismic Inversion Algorithms to Different St...
 
Image denoising using dual tree complex wavelet
Image denoising using dual tree complex waveletImage denoising using dual tree complex wavelet
Image denoising using dual tree complex wavelet
 
Filtering an image is to apply a convolution
Filtering an image is to apply a convolutionFiltering an image is to apply a convolution
Filtering an image is to apply a convolution
 
REGION CLASSIFICATION BASED IMAGE DENOISING USING SHEARLET AND WAVELET TRANSF...
REGION CLASSIFICATION BASED IMAGE DENOISING USING SHEARLET AND WAVELET TRANSF...REGION CLASSIFICATION BASED IMAGE DENOISING USING SHEARLET AND WAVELET TRANSF...
REGION CLASSIFICATION BASED IMAGE DENOISING USING SHEARLET AND WAVELET TRANSF...
 
Image segmentation for high resolution images
Image segmentation for high resolution imagesImage segmentation for high resolution images
Image segmentation for high resolution images
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Graphics
GraphicsGraphics
Graphics
 

Similar to Edge detection

Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processing
Ashish Kumar
 
Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251
Editor IJARCET
 

Similar to Edge detection (20)

Study and Comparison of Various Image Edge Detection Techniques
Study and Comparison of Various Image Edge Detection TechniquesStudy and Comparison of Various Image Edge Detection Techniques
Study and Comparison of Various Image Edge Detection Techniques
 
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTIONEDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
 
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTIONEDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptx
 
image-processing-husseina-ozigi-otaru.ppt
image-processing-husseina-ozigi-otaru.pptimage-processing-husseina-ozigi-otaru.ppt
image-processing-husseina-ozigi-otaru.ppt
 
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
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptx
 
Chapter10_Segmentation.ppt
Chapter10_Segmentation.pptChapter10_Segmentation.ppt
Chapter10_Segmentation.ppt
 
type of edge detector.pptx
type of edge detector.pptxtype of edge detector.pptx
type of edge detector.pptx
 
MachineVision_Chapter5_Edge_Detection.pdf
MachineVision_Chapter5_Edge_Detection.pdfMachineVision_Chapter5_Edge_Detection.pdf
MachineVision_Chapter5_Edge_Detection.pdf
 
3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
 
K010236168
K010236168K010236168
K010236168
 
By33458461
By33458461By33458461
By33458461
 
Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processing
 
Signal Processing, Statistical and Learning Machine Techniques for Edge Detec...
Signal Processing, Statistical and Learning Machine Techniques for Edge Detec...Signal Processing, Statistical and Learning Machine Techniques for Edge Detec...
Signal Processing, Statistical and Learning Machine Techniques for Edge Detec...
 
G010124245
G010124245G010124245
G010124245
 
EDGE Detection Filter for Gray Image and Observing Performances
EDGE Detection Filter for Gray Image and Observing PerformancesEDGE Detection Filter for Gray Image and Observing Performances
EDGE Detection Filter for Gray Image and Observing Performances
 
EDGE Detection Filter for Gray Image and Observing Performances
EDGE Detection Filter for Gray Image and Observing PerformancesEDGE Detection Filter for Gray Image and Observing Performances
EDGE Detection Filter for Gray Image and Observing Performances
 
EFFECTIVE INTEREST REGION ESTIMATION MODEL TO REPRESENT CORNERS FOR IMAGE
EFFECTIVE INTEREST REGION ESTIMATION MODEL TO REPRESENT CORNERS FOR IMAGE EFFECTIVE INTEREST REGION ESTIMATION MODEL TO REPRESENT CORNERS FOR IMAGE
EFFECTIVE INTEREST REGION ESTIMATION MODEL TO REPRESENT CORNERS FOR IMAGE
 
Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251
 

Recently uploaded

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
dharasingh5698
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
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)
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
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...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
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
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
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
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
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
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 

Edge detection

  • 1. Edge detection is a problem of fundamental importance in image analysis. In typical images, edges characterize object boundaries and are therefore useful for segmentation, registration, and identification of objects in a scene. In this section, the construction, characteristics, and performance of a number of gradient and zero-crossing edge operators will be presented. An edge is a jump in intensity. The cross section of an edge has the shape of a ramp. An ideal edge is a discontinuity (i.e., a ramp with an infinite slope). The first derivative assumes a local maximum at an edge. For a continuous image , where xand y are the row and column coordinates respectively, we typically consider the two directional derivatives and . Of particular interest in edge detection are two functions that can be expressed in terms of these directional derivatives: the gradient magnitude and the gradient orientation. The gradient magnitude is defined as , and the gradient orientation is given by . Local maxima of the gradient magnitude identify edges in . When the first derivative achieves a maximum, the second derivative is zero. For this reason, an alternative edge -detection strategy is to locate zeros of the second derivatives of . The differential operator used in these so-called zero-crossing edge detectors is the Laplacian . This loads the package. The following demonstration illustrates the principles of edge detection. We model a one -dimensional edge with a simple smooth function, for example, . As the parameter alpha increases, the slope of the edge gets steeper. Here we use . This evaluates and plots the first and second derivatives of our "edge" function.
  • 2. As expected, the result shows that maxima of the first derivative (green) and zero crossings of the second derivative (blue) locate the center of our model edge. It can also be shown that the zero crossings are independent of the steepness of the transition, while the gradient magnitude is directly related to the edge slope. In practice, finite difference approximations of first-order directional derivatives are used. These are represented by a pair of masks, say and . Formally these are linear-phase FIR filters. A convolution of the image with and gives two directional derivative images and respectively. The gradient image is traditionally calculated as , or alternatively using [1]. A pixel location is declared an edge location if the value of nabla (at point x, y) exceeds some threshold. The locations of all edge points constitutes an edge map. The selection of a threshold value is an important design decision that depends on a number of factors, such as image brightness, contrast, level of noise, and even edge direction. Typically, the threshold is selected following an analysis of the gradient image histogram. It is sometimes useful to calculate edge-direction information. This is given by . Edge Operators Option of EdgeMagnitude The method of computing the gradient magnitude is user selectable with option GradientType.
  • 3. Gradient Edge Operators A number of commonly used gradient operators are available. Here are two common gradient edge operators. Note that each of the Sobel edge masks is a combination of a digital differentiator in one of the spatial directions and a smoothing operator in the other. Here we read one of the example images and consider a subregion of the image. We compute the gradient magnitude and edge direction using the Sobel mask.
  • 4. To recover the edges, the gradient image must be segmented using a global or local (i.e., adaptive) threshold operator. The choice of a threshold value determines the resulting segmentation and, therefore, the perceived quality of the edge detector. It is useful to consider the cumulative histogram of the gradient image in selecting an appropriate threshold value. Here we calculate the histogram and cumulative histogram of the gradient magnitude image. In a typical approach, the top 10 to 20 percent of the largest gradient values are selected as edge points. This is easily done based on an investigation of the cumulative histogram. The threshold can now be estimated visually or even calculated from the cumulative histogram by setting a threshold at the 80 percent level. We display the edge maps for three selected threshold values. Based on visual inspection of the edge maps, it seems reasonable to accept the threshold value of t. A zero-crossing edge operator was originally proposed by Marr and Hildreth [2]. They suggested that in order to effectively detect intensity changes (edges), the operator needs to have two characteristics. First, it must be a differential operator, taking either a first or second spatial derivative of the image. Second, it should be capable of being tuned to act at any desired scale so that large filters can be used to detect blurry shadow edges, and small ones can be used to detect sharply focused fine detail in the image. This led to the so-called Laplacian-of-Gaussian edge operator. This is a compound operator that combines a smoothing operation, using a Gaussian-shaped, linear-phase FIR filter, with a differentation operation, using a discrete Laplacian. The edges are identified by the location of zero crossings (recall that the second derivative changes sign in the vicinity of maxima of the first derivative). Smoothing and Differentiating Filters
  • 5. LaplacianFilter returns a number of common FIR filter approximations to the Laplacian operator. The default argument value ( ) returns the minimum-variance discrete Laplacian subject to the conditions that pixel noise is uncorrelated and has uniform variance [3]. The Laplacian is the lowest-order isotropic (i.e., orientation-independent) operator. This computes the Laplacian of the example image. This shows the original and filtered images. The zero crossings are clearly visible as they occur at the border between bright and dark areas of the Laplacian image. The midtones cover areas of small responses to the Laplacian operator, which corresponds to uniform (flat) brightness areas of the original image.
  • 6. In order to mitigate the increase in pixel noise due to differentiation, the image is filtered with a lowpass filter. This is accomplished by a Gaussian-shaped, linear-phase FIR filter. Since convolution is associative and commutative, the two-step sequence can be reduced to one step by constructing a compound operator. LoGFilter is a compound operator whose values are samples of the Laplacian of the bivariate Gaussian function with variance . Here we set and plot both the resulting function as a surface and the functions profile for . Here we filter the example image using LoGFilter. Shown below are the results of convolving the example image with a Laplacian-of-Gaussian filter followed by zero-crossing detection. The latter is implemented with the function ZeroCrossing.