Similar documents
Computer Vision & Digital Image Processing. Edge linking and boundary detection

jorge s. marques image processing

Convolution. 1D Formula: 2D Formula: Example on the web:

Sharpening through spatial filtering

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

Edge detection. (Trucco, Chapt 4 AND Jain et al., Chapt 5) -Edges are significant local changes of intensity in an image.

Geometry: Unit 1 Vocabulary TERM DEFINITION GEOMETRIC FIGURE. Cannot be defined by using other figures.

REAL TIME TRAFFIC LIGHT CONTROL USING IMAGE PROCESSING

Image Segmentation and Registration

Linear Threshold Units

H.Calculating Normal Vectors

Diagrams and Graphs of Statistical Data

Understanding Poles and Zeros

COMPARISON OF OBJECT BASED AND PIXEL BASED CLASSIFICATION OF HIGH RESOLUTION SATELLITE IMAGES USING ARTIFICIAL NEURAL NETWORKS

L 2 : x = s + 1, y = s, z = 4s Suppose that C has coordinates (x, y, z). Then from the vector equality AC = BD, one has

Clustering & Visualization

Figure 2.1: Center of mass of four points.

We can display an object on a monitor screen in three different computer-model forms: Wireframe model Surface Model Solid model

Practice Final Math 122 Spring 12 Instructor: Jeff Lang

Chapter 3.1 Angles. Geometry. Objectives: Define what an angle is. Define the parts of an angle.

Highlight Removal by Illumination-Constrained Inpainting

The GeoMedia Fusion Validate Geometry command provides the GUI for detecting geometric anomalies on a single feature.

Common Core Unit Summary Grades 6 to 8

When the fluid velocity is zero, called the hydrostatic condition, the pressure variation is due only to the weight of the fluid.

Dhiren Bhatia Carnegie Mellon University

Data Structure [Question Bank]

Geometry and Measurement

Jiří Matas. Hough Transform

Robert Collins CSE598G. More on Mean-shift. R.Collins, CSE, PSU CSE598G Spring 2006

2.2 Creaseness operator

F B = ilbsin(f), L x B because we take current i to be a positive quantity. The force FB. L and. B as shown in the Figure below.

Visualization and Feature Extraction, FLOW Spring School 2016 Prof. Dr. Tino Weinkauf. Flow Visualization. Image-Based Methods (integration-based)

Circle Name: Radius: Diameter: Chord: Secant:

DEFINITION A complex number is a matrix of the form. x y. , y x

Equations of Lines and Planes

Computer Graphics. Geometric Modeling. Page 1. Copyright Gotsman, Elber, Barequet, Karni, Sheffer Computer Science - Technion. An Example.

Section 12.6: Directional Derivatives and the Gradient Vector

Two vectors are equal if they have the same length and direction. They do not

Exam 1 Sample Question SOLUTIONS. y = 2x

Name Class. Date Section. Test Form A Chapter 11. Chapter 11 Test Bank 155

A New Image Edge Detection Method using Quality-based Clustering. Bijay Neupane Zeyar Aung Wei Lee Woon. Technical Report DNA #

Math 241 Lines and Planes (Solutions) x = 3 3t. z = 1 t. x = 5 + t. z = 7 + 3t

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

Modelling, Extraction and Description of Intrinsic Cues of High Resolution Satellite Images: Independent Component Analysis based approaches

Comparison of Non-linear Dimensionality Reduction Techniques for Classification with Gene Expression Microarray Data

Solutions to Homework 10

Lectures 6&7: Image Enhancement

Texture. Chapter Introduction

Fast Multipole Method for particle interactions: an open source parallel library component

GeoGebra. 10 lessons. Gerrit Stols

Section 1.1. Introduction to R n

QUALITY TESTING OF WATER PUMP PULLEY USING IMAGE PROCESSING

Analecta Vol. 8, No. 2 ISSN

Nonlinear Iterative Partial Least Squares Method

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

Section 2.4: Equations of Lines and Planes

Lecture 2 Linear functions and examples

In mathematics, there are four attainment targets: using and applying mathematics; number and algebra; shape, space and measures, and handling data.

Assessment. Presenter: Yupu Zhang, Guoliang Jin, Tuo Wang Computer Vision 2008 Fall

Segmentation & Clustering

DATA ANALYSIS II. Matrix Algorithms

HSI BASED COLOUR IMAGE EQUALIZATION USING ITERATIVE n th ROOT AND n th POWER

Solving Simultaneous Equations and Matrices

x(x + 5) x 2 25 (x + 5)(x 5) = x 6(x 4) x ( x 4) + 3

Part 2: Community Detection

ADVANTAGES AND DISADVANTAGES OF THE HOUGH TRANSFORMATION IN THE FRAME OF AUTOMATED BUILDING EXTRACTION

Segmentation and Automatic Descreening of Scanned Documents

ab = c a If the coefficients a,b and c are real then either α and β are real or α and β are complex conjugates

Structural Axial, Shear and Bending Moments

Derive 5: The Easiest... Just Got Better!

Parametric Curves. (Com S 477/577 Notes) Yan-Bin Jia. Oct 8, 2015

Cabri Geometry Application User Guide

5.3 The Cross Product in R 3

2.3 WINDOW-TO-VIEWPORT COORDINATE TRANSFORMATION

5: Magnitude 6: Convert to Polar 7: Convert to Rectangular

This makes sense. t /t 2 dt = 1. t t 2 + 1dt = 2 du = 1 3 u3/2 u=5

Example SECTION X-AXIS - the horizontal number line. Y-AXIS - the vertical number line ORIGIN - the point where the x-axis and y-axis cross

Implementation of Canny Edge Detector of color images on CELL/B.E. Architecture.

The Artificial Prediction Market

Section 13.5 Equations of Lines and Planes

Jitter Measurements in Serial Data Signals

G.H. Raisoni College of Engineering, Nagpur. Department of Information Technology

CHAPTER FIVE. 5. Equations of Lines in R 3

Solutions to old Exam 1 problems

. Learn the number of classes and the structure of each class using similarity between unlabeled training patterns

CAMI Education linked to CAPS: Mathematics

CONCEPT-II. Overview of demo examples

Project: OUTFIELD FENCES

Galaxy Morphological Classification

Excel -- Creating Charts

The Fourth International DERIVE-TI92/89 Conference Liverpool, U.K., July Derive 5: The Easiest... Just Got Better!

Review of Fundamental Mathematics

A Simple Feature Extraction Technique of a Pattern By Hopfield Network

Surface Normals and Tangent Planes

Geometry 1. Unit 3: Perpendicular and Parallel Lines

Enhanced LIC Pencil Filter

Feature Tracking and Optical Flow

Eðlisfræði 2, vor 2007

Digital Imaging and Multimedia. Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

Digital Photogrammetric System. Version USER MANUAL. Block adjustment

Transcription:

Image Segmentation Preview Segmentation subdivides an image to regions or objects Two basic properties of intensity values Discontinuity Edge detection Similarity Thresholding Region growing/splitting/merging

Detection of Discontinuities: Point detection Mask operation R = i= 1 Point detection Isolated point 9 w i z i R T whose gray value is significantly different from its background

Detection of discontinuities: Line detection Mask operation Preferred direction is weighted by with a larger coefficient The coefficients in each mask sum to zero response of constant gray level areas Compare values of individual masks (run all masks) or run only the mask of specified direction

Image Segmentation: Line detection Example: interested in lines of -45 o Run the corresponding mask All other lines are eliminated

Detection of discontinuities: Edge detection Basic formulation Edge: a set of connected pixels that lie on the boundary between two regions Local concept in contrast to more global boundary concept To be measured by grey-level transitions Ideal and blurred edges

Edge detection First derivative can be used to detect the presence of an edge (if a point is on a ramp) The sign of the second derivative can be used to determine whether an edge pixel lie on the dark or light side of an edge Second derivative produces two value per edge Zero crossing near the edge midpoint Non-horizontal edges define a profile perpendicular to the edge direction

Edge detection Edges in the presense of noise Derivatives are sensitive to (even fairly little) noise Consider image smoothing prior to the use of derivatives Edge definition again Edge point whose first derivative is above a pre-specified threshold Edge connected edge points Derivatives are computed through gradients (1 st ) and Laplacians (2 nd )

Edge detection: Gradient operators Gradient Vector pointing to the direction of maximum rate of change of f at coordinates (x,y) Magnitude: gives the quantity of the increase (some times referred to as 2 2 gradient too) f = mag( f ) = G x + Gy Direction: perpendicular to the direction of the edge at (x,y) Partial derivatives computed through 2x2 or 3x3 masks Sobel operators introduce some smoothing and give more importance to the center point f [ ] 1/ 2 G = G x y α( x, y) = tan f = f x y f G x + G y 1 G G x y

Edge detection: Gradient operators Detecting diagonal edges

Edge detection: Examples

Edge detection: Examples

Edge detection: Examples

Edge detection Laplacian 2 2 2 f f Second-order derivative of a 2-D function f = + 2 2 x y Digital approximations by proper masks Complementary use for edge detection Cons: Laplacian is very sensible to noise; double edges Pros: Dark or light side of the edge; zero crossings are of better use Laplacian of Gaussian (LoG): preliminary smoothing to find edges through zero crossings h r 2 2σ ( r) = e 2 2 2 r = x + y 2 2 h 2 2 r r σ 2 2σ ( r) = e 4 σ 2

Edge detection

Edge detection Example: Edges through LoG zero-crossings on an angiogram image 27x27 Gaussian mask, 3x3 Laplacian Thinner than the gradient edges Closeed loops (spagetti effect) Zero-crossing calculation is not straighforward

Edge linking and boundary detection Local processing Analyze pixels in a small neighborhood following predefined criteria. Connect similar (labeled edge ) points Strength of the gradient vector response f G x + G y ; f x, y) f ( x, y ) ( 0 0 E Gradient vector direction ( ) 1 α( x, y) = tan G x / G y α x, y) α( x, y ) < ( 0 0 A Both magnitude and angle criteria should be satisfied

Edge linking and boundary detection Example: find rectangular shapes similar to license plate Find gradients Connect edge points Check horizontal-vertical proportion

Edge linking and boundary detection Global processing via the Hough transform Determine if points lie on a curve of specified shape Consider a point (x i,y i ) and the general line equation yi = axi + b Write the equation with respect to ab-plane (parametric space) b = x a + Write the equation for a second point (x j,y j ) and find the intersection point (a,b ) on the parametric space All points on a line intersect at the same parametric point i y i

Edge linking and boundary detection Computational aspects of the Hough transform Subdivision of the parametric space into accumulator cells The cell at (i,j) with accumulator values A(i,j) corresponds to (a i,b j ) For every point (x k,y k ) vary a from cell to cell and solve for b: b = x a + If a p generates b q, then increment the accumulator A(p,q)=A(p,q)+1 At the end of the procedure, a value of Q in A(i,j) corresponds to Q points in the xy-plane lying on the line y = aix + b j K different incremens of a generate K different values of b; for n different image point, the method involves nk computations (linear complexity) k y k

Edge linking and boundary detection Hough transform: handling the vertical lines Through normal representation x cosθ + y sinθ = ρ Instead of straight lines, there are sinusoidal curves in the parameter space The number or intesecting sinusoids is accumulated and then the value Q in the accumulator A(i,j) shows the number of colinear points lying on a line x cosθ + y sinθj = ρ j i

Edge linking and boundary detection Example: two lines connecting three points each Fig (d) indicates that the Hough transform exhibits a reflective adjacency relationship Summary of Hough transform for edge linking Compute the gradient Specify subdivisions in the parametric plane Examine the counts of the accumulator cells Examine the continuity relationship between pixels in a chosen cell

Edge linking and boundary detection Example: Hough transform removing gaps (no longer than 5 pixels) between edge pixels

Edge linking and boundary detection Global processing via Graph-Theoretic Techniques Graph G=(N,U): a set of nodes N and a set U of arcs (n i, n j ). In a directed arc n i is called parent and n j is called successor. Expansion: identifying successors of a node Starting (0 or root) level, last (goal) level Cost c(n i, n j ) associated with an arc; Path n 1, n 2,,n k, with each n i, being a successor of n j-1. Cost of a path is the sum of costs of the arcs constituting the path. Edge element defined between two neighboor pixels p and q (x p, y p ) (x q, y q ) Associate cost with an edge element c( p, q) = H [ f ( p) f ( q)]

Edge linking: examples of graph search

Thresholding Foundation Histogram dominant modes: two or more Threshold and thresholding operation 1 T = T[ x, y, p( x, y), f ( x, y) ]; g( x, y) = 0 Illumination Image is a product of reflectance and illuminance Reflection nature of objects and backaground Poor (nonlinear) illumination could impede the segmentation The final histogram is a result of convolution of the histogram of the log reflectance and log illuminance functions Normalization if the illuminance function is known if if f ( x, y) > T f ( x, y) T

Thresholding Basic Global Thresholding Threshold midway between maximum and minimum gray levels Appropriate for industrial inspection applications with controllable illumination Automatic algorithm Segment with initial T into regions G 1 and G 2 Compute the average gray level m 1 and m 2 Compute new T=0.5(m 1 +m 2 ) Repeat until reach an acceptably small change of T in successive iterations

Thresholding Basic Adaptive Thresholding Divide the image into sub-images and use local thresholds

Thresholding Optimal Global and Adaptive Thresholding Histograms considered as estimates of probability density functions Mixure probability p( z) = P1 p1( z) + P2 p2( z); P1 + P2 = 1 Select the value of T that minmizes the average error in making the decision that a given pixel belongs to an object of to the background Minimizing the probability of eroneous classificaion Differentiate the error equation and solve for T Estimating the densities using simple models, e.g. Gaussian T ( T ) = P2 p2( z) dz + P1 p1 T E ( z) dz P 2 p2( T ) = P1 p1( T )

Thresholding Boundary Characteristics for Histogram Thresholding Consider only pixels lying on and near edges Use gradient or Laplacian to preliminary process the image 0 s( x, y) = + if f if f if f < T T T and and 0 < 0 Transition from light background to dark object is characterized (-,+), object interior is coded by either 0 or +, transition from object to background (+,-) 2 2 f f

Thresholding Thresholds based on several variables Color or multispectral histograms Thresholding is based on finding clusters in multi-dimensional space Example: face detection Different color models Hue and saturation instead of RGB

Region-based segmentation Basic formulation Every pixel must be in a region Points in a region must be connected Regions must be disjoint Logical predicate for one region and for distinguishing between regions Region growing Group pixels from sub-regions to larger regions Start from a set of seed pixels and append pixels with similar properties Selection of similarity criteria: color, descriptotors (gray level + moments) Stopping rule Region splitting and merging Quadtree decomposition

Chapter 10 Image Segmentation

Chapter 10 Image Segmentation

Chapter 10 Image Segmentation

Chapter 10 Image Segmentation

Chapter 10 Image Segmentation

Chapter 10 Image Segmentation

Chapter 10 Image Segmentation

Chapter 10 Image Segmentation

Chapter 10 Image Segmentation

Chapter 10 Image Segmentation

Chapter 10 Image Segmentation

Chapter 10 Image Segmentation