TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.

Slides:



Advertisements
Similar presentations
Boundary Detection - Edges Boundaries of objects –Usually different materials/orientations, intensity changes.
Advertisements

EDGE DETECTION ARCHANA IYER AADHAR AUTHENTICATION.
Sliding Window Filters and Edge Detection Longin Jan Latecki Computer Graphics and Image Processing CIS 601 – Fall 2004.
EDGE DETECTION.
Multimedia communications EG 371Dr Matt Roach Multimedia Communications EG 371 and EE 348 Dr Matt Roach Lecture 6 Image processing (filters)
1Ellen L. Walker Edges Humans easily understand “line drawings” as pictures.
EE663 Image Processing Edge Detection 1
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Lecture 4 Edge Detection
Computer Vision Group Edge Detection Giacomo Boracchi 5/12/2007
Canny Edge Detector.
Edge detection. Edge Detection in Images Finding the contour of objects in a scene.
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Canny Edge Detector1 1)Smooth image with a Gaussian optimizes the trade-off between noise filtering and edge localization 2)Compute the Gradient magnitude.
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering
The Segmentation Problem
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
© 2010 Cengage Learning Engineering. All Rights Reserved.
Edge Detection Hao Huy Tran Computer Graphics and Image Processing CIS 581 – Fall 2002 Professor: Dr. Longin Jan Latecki.
G52IIP, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
Edges. Edge detection schemes can be grouped in three classes: –Gradient operators: Robert, Sobel, Prewitt, and Laplacian (3x3 and 5x5 masks) –Surface.
Detection of nerves in Ultrasound Images using edge detection techniques NIRANJAN TALLAPALLY.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
Chapter 10 Image Segmentation.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
SHINTA P. Juli What are edges in an image? Edge Detection Edge Detection Methods Edge Operators Matlab Program.
G52IVG, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
CSC508 What You Should Be Doing Code, code, code –Programming Gaussian Convolution Sobel Edge Operator.
Mathematical Morphology Mathematical morphology (matematická morfologie) –A special image analysis discipline based on morphological transformations of.
CS654: Digital Image Analysis Lecture 24: Introduction to Image Segmentation: Edge Detection Slide credits: Derek Hoiem, Lana Lazebnik, Steve Seitz, David.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
October 7, 2014Computer Vision Lecture 9: Edge Detection II 1 Laplacian Filters Idea: Smooth the image, Smooth the image, compute the second derivative.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Mathematical Morphology
Edge Based Segmentation Xinyu Chang. Outline Introduction Canny Edge detector Edge Relaxation Border Tracing.
Chapter 9: Image Segmentation
CS654: Digital Image Analysis
October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j],
CSE 6367 Computer Vision Image Operations and Filtering “You cannot teach a man anything, you can only help him find it within himself.” ― Galileo GalileiGalileo.
1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Image Segmentation Prepared by:- Prof. T.R.Shah Mechatronics Engineering Department U.V.Patel College of Engineering, Ganpat Vidyanagar.
Course 5 Edge Detection. Image Features: local, meaningful, detectable parts of an image. edge corner texture … Edges: Edges points, or simply edges,
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
Digital Image Processing
Morphological Image Processing
September 26, 2013Computer Vision Lecture 8: Edge Detection II 1Gradient In the one-dimensional case, a step edge corresponds to a local peak in the first.
Sliding Window Filters Longin Jan Latecki October 9, 2002.
Detection of nerves in Ultrasound Images using edge detection techniques NIRANJAN TALLAPALLY.
1 Edge Operators a kind of filtering that leads to useful features.
April 21, 2016Introduction to Artificial Intelligence Lecture 22: Computer Vision II 1 Canny Edge Detector The Canny edge detector is a good approximation.
Environmental Remote Sensing GEOG 2021
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
Chapter 10 Image Segmentation
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Computer Vision Lecture 9: Edge Detection II
Levi Smith REU Week 1.
Dr. Chang Shu COMP 4900C Winter 2008
a kind of filtering that leads to useful features
a kind of filtering that leads to useful features
Binary Image processing بهمن 92
Spatial operations and transformations
Canny Edge Detector.
Morphological Operators
IT472 Digital Image Processing
IT472 Digital Image Processing
Spatial operations and transformations
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY

Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned to a particular object or region.. Boundary detection: one attempts to detect the boundaries that exist between regions.. Edge detection: one seeks to identify edge pixels and then link them together to form a connected boundary. SEGMENTATION

THRESHOLDING

THE LAPLACIAN OPERATOR

THE LAPLACIAN OPERATOR IN PRACTICE

If the area around the pixel has a constant grey level then application of the kernel results in a grey level value of 0 The average grey level is 0 Negative values are possible. In practice this can be avoided by defining zero to be the grey value 128 The kernel is not direction sensitive in the sense of preferentially selecting either vertical or horizontal edges. PROPERTIES OF THE LAPLACIAN OPERATOR

ALTERNATIVE FORM OF THE LAPLACIAN

ROBERTS OPERATOR

SOBEL OPERATOR

The Sobel operator is one of those most commonly used and has received special attention because it can be performed in real time (< 1/30 sec. Per image) which makes it attractive for military tracking applications. THE SOBEL OPERATOR

The Canny Edge Detector The Canny edge detector is an example of an optimal edge detector in that it claims to optimise the edge detecting process. Its operation is however quite complex. It works as a multi stage process : 1.The image is smoothed with a Gaussian convolution. 2.A simple 2D operator (similar to the Roberts) is applied to highlight regions with a high gradient. 3.Edges give rise to ridges in the gradient image the algorithm then tracks along these ridges marking a trail 1 pixel wide on the top of the ridge. 4.Two parameters control the process (a) which is the lowest point on a ridge that tracking begins and (b) b<a is the point at which tracking ceases when the height of the ridge falls below this value.

The Canny edge detector in action a = b =

Edge detection in MATLAB function UsingEdge %To edge detect a butterfly A = imread('moth9.gif'); [BW,thresh] = edge(A,'sobel',0.04); imshow(BW) thresh Thresh=0.04 Thresh=0.06

A morphological transformation is one where a structuring element (usually 3x3 but could be larger) is passed over the binary image and a logical operation performed (e.g. AND, OR, NOT, XOR in simple cases) on a pixel by pixel basis. The structuring element is also binary in form A MORPHOLOGICAL TRANSFORMATION

This is the process of eliminating all boundary points from an element. In other words if a pixel with a value 1 has an immediate neighbour with a value 0 the pixel value is set to 0. Note : the pixel values are not continuously updated during the transformation otherwise the result would be a blank image ! BASIC EROSION

EROSION APPLICATION

FORMAL DEFINITION OF EROSION

Dilation is the inverse of erosion where any pixel adjacent to a pixel of value 1 is changed to 1 DILATION

Thinning Erosion can be programmed as a two step process so that objects are not broken up. In the first step candidate pixels are marked for deletion but not deleted. In the second pass pixels are eliminated only if they would not destroy the connectivity of the object. Thinning reduces objects to a single pixel wide line highlighting line topology

THINNING

Opening The process of erosion followed by dilation is known as opening. It has the effect of eliminating small objects, smoothing the boundaries of large objects without significantly changing their area. In other words a good combination for cleaning up a segmented image.

Closing The process of dilation followed erosion is known as closing. It has the effect of filling small and thin holes and smoothing boundaries without changing the area of larger objects.

Shrinking If erosion is implemented in such a way that single pixel objects are left intact the process is known as shrinking. It is a useful way of counting the size distribution of objects in the scene by successive shrinking followed by counting the change in the number of single pixel objets in the image.

Skeletonisation This process is very similar to thinning and can also be achieved by a two pass process. The essential difference is that skeletonisation retains the full dimension of the object.

ANALYSIS PIPELINE

UNDERSTANDING A PRINTED CIRCUIT BOARD

Using convolution for filtering (a) (b) Figure 14.3

Convolution and Correlation Convolution Finds its principal application in high and low pass filtering Correlation Finds its principal application in template matching

Example of using filter The mask function UsingMask %Edge detection using a mask A = imread('moth9.gif'); %smooth the image mask = [1 1 1;1 1 1;1 1 1]; multiplier = 1/(255*9); mask = multiplier.*mask; BW = filter2(mask,A); %imshow(BW)

An improved filtering mask to remove noise

DILATION