Topic 4 Image Segmentation

Σχετικά έγγραφα
5-1. Industrial Vision. Machine Vision Systems : Image Acquisition Image processing Analysis/Exploitation

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007

Other Test Constructions: Likelihood Ratio & Bayes Tests

CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS

4.6 Autoregressive Moving Average Model ARMA(1,1)

Homework 3 Solutions

Τελική Εξέταση =1 = 0. a b c. Τµήµα Ηλεκτρολόγων Μηχανικών και Μηχανικών Υπολογιστών. HMY 626 Επεξεργασία Εικόνας

HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:

Second Order RLC Filters

2 Composition. Invertible Mappings

Statistical Inference I Locally most powerful tests

Strain gauge and rosettes

derivation of the Laplacian from rectangular to spherical coordinates

The Simply Typed Lambda Calculus

ΕΙΣΑΓΩΓΗ ΣΤΗ ΣΤΑΤΙΣΤΙΚΗ ΑΝΑΛΥΣΗ

Problem Set 3: Solutions

PARTIAL NOTES for 6.1 Trigonometric Identities

k A = [k, k]( )[a 1, a 2 ] = [ka 1,ka 2 ] 4For the division of two intervals of confidence in R +

Απόκριση σε Μοναδιαία Ωστική Δύναμη (Unit Impulse) Απόκριση σε Δυνάμεις Αυθαίρετα Μεταβαλλόμενες με το Χρόνο. Απόστολος Σ.

Section 8.3 Trigonometric Equations

ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ. Ψηφιακή Οικονομία. Διάλεξη 7η: Consumer Behavior Mαρίνα Μπιτσάκη Τμήμα Επιστήμης Υπολογιστών

The challenges of non-stable predicates

EE512: Error Control Coding

Section 7.6 Double and Half Angle Formulas

ST5224: Advanced Statistical Theory II

Math 6 SL Probability Distributions Practice Test Mark Scheme

Homework 8 Model Solution Section

Areas and Lengths in Polar Coordinates

D Alembert s Solution to the Wave Equation

Μηχανική Μάθηση Hypothesis Testing

Bayesian statistics. DS GA 1002 Probability and Statistics for Data Science.

Approximation of distance between locations on earth given by latitude and longitude

Matrices and Determinants

HISTOGRAMS AND PERCENTILES What is the 25 th percentile of a histogram? What is the 50 th percentile for the cigarette histogram?

Math221: HW# 1 solutions

Econ 2110: Fall 2008 Suggested Solutions to Problem Set 8 questions or comments to Dan Fetter 1

Jesse Maassen and Mark Lundstrom Purdue University November 25, 2013

Practice Exam 2. Conceptual Questions. 1. State a Basic identity and then verify it. (a) Identity: Solution: One identity is csc(θ) = 1

Fractional Colorings and Zykov Products of graphs

Section 9.2 Polar Equations and Graphs

Example Sheet 3 Solutions

Areas and Lengths in Polar Coordinates

ANSWERSHEET (TOPIC = DIFFERENTIAL CALCULUS) COLLECTION #2. h 0 h h 0 h h 0 ( ) g k = g 0 + g 1 + g g 2009 =?

Numerical Analysis FMN011

Ψηφιακή Επεξεργασία Εικόνας

3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β

6.3 Forecasting ARMA processes

Pg The perimeter is P = 3x The area of a triangle is. where b is the base, h is the height. In our case b = x, then the area is

Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)

Lecture 2. Soundness and completeness of propositional logic

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006

Ψηφιακή Επεξεργασία Εικόνας

Srednicki Chapter 55

Concrete Mathematics Exercises from 30 September 2016

ΨΗΦΙΑΚΗ ΕΠΕΞΕΡΓΑΣΙΑ ΕΙΚΟΝΑΣ

«ΑΝΑΠΣΤΞΖ ΓΠ ΚΑΗ ΥΩΡΗΚΖ ΑΝΑΛΤΖ ΜΔΣΔΩΡΟΛΟΓΗΚΩΝ ΓΔΓΟΜΔΝΩΝ ΣΟΝ ΔΛΛΑΓΗΚΟ ΥΩΡΟ»

«Χρήσεις γης, αξίες γης και κυκλοφοριακές ρυθμίσεις στο Δήμο Χαλκιδέων. Η μεταξύ τους σχέση και εξέλιξη.»

CE 530 Molecular Simulation

the total number of electrons passing through the lamp.

Mean bond enthalpy Standard enthalpy of formation Bond N H N N N N H O O O

ECE 468: Digital Image Processing. Lecture 8

Estimation for ARMA Processes with Stable Noise. Matt Calder & Richard A. Davis Colorado State University

Main source: "Discrete-time systems and computer control" by Α. ΣΚΟΔΡΑΣ ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ ΔΙΑΛΕΞΗ 4 ΔΙΑΦΑΝΕΙΑ 1

Exercises 10. Find a fundamental matrix of the given system of equations. Also find the fundamental matrix Φ(t) satisfying Φ(0) = I. 1.

1. Αφετηρία από στάση χωρίς κριτή (self start όπου πινακίδα εκκίνησης) 5 λεπτά µετά την αφετηρία σας από το TC1B KALO LIVADI OUT

EPL 603 TOPICS IN SOFTWARE ENGINEERING. Lab 5: Component Adaptation Environment (COPE)

New bounds for spherical two-distance sets and equiangular lines

Exercises to Statistics of Material Fatigue No. 5

Block Ciphers Modes. Ramki Thurimella

Démographie spatiale/spatial Demography

Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in

Partial Differential Equations in Biology The boundary element method. March 26, 2013

Inverse trigonometric functions & General Solution of Trigonometric Equations

Problem Set 9 Solutions. θ + 1. θ 2 + cotθ ( ) sinθ e iφ is an eigenfunction of the ˆ L 2 operator. / θ 2. φ 2. sin 2 θ φ 2. ( ) = e iφ. = e iφ cosθ.

Συστήματα Διαχείρισης Βάσεων Δεδομένων

SOLUTIONS TO MATH38181 EXTREME VALUES AND FINANCIAL RISK EXAM

Capacitors - Capacitance, Charge and Potential Difference

ΓΡΑΜΜΙΚΟΣ & ΔΙΚΤΥΑΚΟΣ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΣ

CHAPTER 48 APPLICATIONS OF MATRICES AND DETERMINANTS

[1] P Q. Fig. 3.1

ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ. Ψηφιακή Οικονομία. Διάλεξη 8η: Producer Behavior Mαρίνα Μπιτσάκη Τμήμα Επιστήμης Υπολογιστών

Instruction Execution Times

Solutions to Exercise Sheet 5

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 24/3/2007

Reminders: linear functions

6.1. Dirac Equation. Hamiltonian. Dirac Eq.

Models for Probabilistic Programs with an Adversary

Lecture 2: Dirac notation and a review of linear algebra Read Sakurai chapter 1, Baym chatper 3

(1) Describe the process by which mercury atoms become excited in a fluorescent tube (3)

Assalamu `alaikum wr. wb.

5.4 The Poisson Distribution.

Detection and Recognition of Traffic Signal Using Machine Learning

TMA4115 Matematikk 3

10 MERCHIA. 10. Starting from standing position (where the SIGN START ) without marshal (self start) 5 minutes after TC4 KALO LIVADI OUT

Overview. Transition Semantics. Configurations and the transition relation. Executions and computation

Supplementary Materials for Evolutionary Multiobjective Optimization Based Multimodal Optimization: Fitness Landscape Approximation and Peak Detection

Elements of Information Theory

1 String with massive end-points

ΠΕΡΙΕΧΟΜΕΝΑ. Κεφάλαιο 1: Κεφάλαιο 2: Κεφάλαιο 3:

ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΕΙΡΑΙΑ ΤΜΗΜΑ ΝΑΥΤΙΛΙΑΚΩΝ ΣΠΟΥΔΩΝ ΠΡΟΓΡΑΜΜΑ ΜΕΤΑΠΤΥΧΙΑΚΩΝ ΣΠΟΥΔΩΝ ΣΤΗΝ ΝΑΥΤΙΛΙΑ

Transcript:

Topic 4 Image Segmentation What is Segmentation? Why? Segmentation important contributing factor to the success of an automated image analysis process What is Image Analysis: Processing images to derive information about various structures within the image. (area of the object, perimeter, No. of objects): Object Recognition First Step in analysis - Segmentation 1

Function of Segmentation: subdivides an image into its constituent regions or objects. Level of division depends on the problem (Known and unknown image environment) Subdivision should stop when the objects of interest have been isolated eg. skin region Input Image Output Image Input Image Output Image Image segmentation for monochrome image based on 2 basic properties of intensity values: (I) Discontinuity partition an image based on abrupt changes in intensity. Eg. Point, Line, Edge Detection in an image (II)Similarity partition an image based on similarity to a set of predefined criteria Eg. Thresholding, region growing, split and merge. 2

(I) Detection of Discontinuities 3 basic types of Discontinuities in Digital Image: (i) Point (ii) Line (iii) Edge Most common method to detect discontinuities: Run mask over the image (same as spatial filtering) w 1 w 2 w 3 w 4 w 5 w 6 R = w z + 1 1 + w2z2 + w3z3 +... w9z9 w 7 w 8 w 9 Point Detection -1-1 -1-1 8-1 -1-1 -1 R = wz + 1 1 + w2 z2 +... w9 z9 Isolated Point will be different from from its surroundings and can be detected using this mask Mask is same as one of the masks shown in 2D Laplacian but the difference: R T ; T = Threshold DETECTED POINT 3

Example of Point Detection (a) X-ray Image of a Turbine Blade with a porosity in the upper right quadrant of the image (b) Result of Point Detection (c) Result of Using R T T = 90% of the highest absolute pixel value of the image Line Detection -1-1 -1 2 2 2-1 -1-1 Horizontal -1-1 2-1 2-1 2-1 -1 + 45-1 2-1 -1 2-1 -1 2-1 Vertical 2-1 -1-1 2-1 -1-1 2-45 Mask can detect 1 pixel thick lines only If all the 4 masks are run individually through an image: R i > R j ; j i then that point is likely to be associated with the direction in mask i Eg. R i = Vertical Line Mask, R j = The 3 other masks, so, the point will be likely to be associated to a Vertical Line 4

Example of Line Detection If we need to detect a line in a specific direction: (i) Run the mask for the line (ii) Threshold the absolute value of the result Detect -45 lines Absolute value of result after processing with - 45 line detector Result of Thresholding the Absolute Value (Threshold = maximum value in the image) Edge Detection Most common method to detect discontinuities Used to derive structural, shape information Basic approach to compute local derivative using 1 st and 2 nd order derivative Several method to detect edges - Problem 5

What is an Edge? Edge can be defined as the change in intensity profile Roof Type Step Type Characterising an edge Roof Type Discontinuity in the gradient profile One peak in the 2 nd derivative Step Type Discontinuity in the intensity profile One peak in the gradient 2 peaks of the opposite signs in the 2 nd derivative - i.e. a zero-crossing 6

Edge Images Thickness of the edge: determined by the length of the ramp Length of ramp: determined by the slope of the ramp (determined by degree of blurring Blurred Edges: THICK and Sharp Edges: THIN Edge Images Observation: 1 st Derivative 1. Magnitude of the 1 st Derivative can be used to detect if a point is on an edge 2. Sign of the 2 nd Derivative can be used to find whether the edge pixel is on the dark or light side of an edge Gray-level Profiles Image 2 nd Derivative 3. 2 nd Derivative produces 2 values for every edge and an imaginary straight line will cross zero near the midpoint of the edge (called the zerocrossing property of 2 nd derivative useful for locating the centers of thick edges) 7

Gradient based Edge Detection Compute first derivative (gradient) and threshold this image Zero-crossing based Compute second derivative, locate zero crossings and threshold this image Gradient based edge detection Roberts 2x2 masks Difference operation in 2 diagonal directions Sobel gradient operator + smoothing Prewitt 3x3 gradient operator + smoothing 8

Gradient operators 0-1 1 0-1 0 1-1 0 1-1 0 1-1 -2-1 0 0 0 1 2 1 Roberts Prewitt Sobel -1 0 0 1-1 -1-1 0 0 0 1 1 1-1 0 1-2 0 2-1 0 1 X-Direction Y-Direction X & Y-Direction With Smoothing using Averaging Filter 9

Zero-crossing based edge detection Laplacian 2 nd derivative operator Can only locate edges, can t give edge direction Very sensitive to noise thus, will produce undesirable double edges Smoothed Laplacian Noise reduction through smoothing by using Gaussian function Known as Laplacian of Gaussian (LoG) Approximated as difference of Gaussians (DoG) - used in HVS (simple cells) Laplacian 2 Second derivative operators 2 f f ( x, y) = 2 x 2 f + 2 y Masks 0-1 0-1 4-1 0-1 0 Laplacian of a Gaussian (LoG) 2 ( G) * f ( x, y) Mexican Hat 1-2 1-2 4-2 1-2 1 10

Canny Edge Detector An optimal edge detector optimal in detection, localization and giving single response Main proc. stages Gaussian smoothing removes noise Edge direction estimation from gradient image Non-maxima suppression by following edge direction to get single response to edges Thresholding (hysteresis) dual threshold to obtain clean contours Canny edge detector Performance Very good results Computationally very expensive 11

Edge based segmentation Compute gradient and threshold the gradient image Problems in edge based segmentation Sensitivity to noise 12

Comparisons of edge detection methods Coin Image Prewitt LoG Canny Thresholding Original Image and Histogram 1600 1400 1200 1000 800 600 400 200 Background Threshold value = 90 Foreground 0 0 50 100 150 200 250 7000 6000 After Thresholding 5000 4000 3000 2000 1000 0 0 50 100 150 200 250 13

Thresholding Division of image into 2 uniform regions - Object vs background Types of thresholding Interactive (w. mouse input) Automatic Fixed Adaptive global local dynamic Fixed thresholding When to use: grey values of object vs background are known x[m,n] = 1 for g 1 < x < g 2 = 0 otherwise Variation: fixed grey value AND some other criterion - Ex. Proximity of the candidate to an object pixel 14

Adaptive Thresholding Threshold, t = f{[m,n],p l, x[m,n]} - x is the given image - x[m,n] = gray-level values - p l is the local property eg. of local property average gray value of a neighborhood centered on (m,n) (i) (ii) Global: t = f{x[m,n]} Local: t = f{p l, x[m,n]} (iii) Dynamic: t = f{[m,n],p l, x[m,n]} Global Thresholding Applied to the whole image Uses image data to determine the threshold - Brightness histograms h[g] are popular - Ideally need well defined peaks and troughs - Single or dual thresholds - Computationally less intensive 15

Global Thresholding T Local Thresholding Applied after dividing x[m,n] into uniformly brightness patches Patch boundaries need to be post processed Combinations of local statistics and other derived information are used to find t - ex. Texture, entropy etc. Very effective for handling non-uniform illumination Computationally more intensive 16

Selecting the Threshold Number of peaks and definition of troughs influence threshold selection Difficult Case Histogram Smoothing Histogram smoothing is used to select thresholds when histograms are ragged Threshold selection is made easier Care must be taken not to shift peaks 17

Thresholding - Example Scanned doc After global thresholding After adaptive thresholding (local) t = mean in 7x7 window t = local mean - k 18

Thresholding Example Threshold Selection on Boundary Characteristics To obtain a good segmentation, the selection of threshold is easy if the histogram peaks are tall and separated by deep valleys Solution: to consider only the pixels that lie on or near the edges between objects and background (using pixels that satisfy some simple measures based on gradient and Laplacian operators) 0 s( x, y) = + if f if f if f < T 2 T and f 0 2 T and f < 0 Pixels not on an edge Pixels on the dark side of an edge Pixels on the light side of an edge 19

Local Thresholding 20

Region-based approaches Previously: Edge detection segmentation by finding the boundaries between regions based on discontinuities in gray levels Thresholding segmentation based on the distribution of pixel properties eg. gray-level values In this section: Region-based approach segmentation based on finding the regions directly (based on similarity) Suitable for segmenting non-uniform regions that are perceived to be uniform Grouping by similarity and spatial proximity Region-based segmentation Region Growing Split and Merge Region growing: a procedure that groups pixels or subregions into larger regions based on predefined criteria Basic Approach to implement Region Growing: Start with seed points Region Growing From the seed points, grow the regions by adding to each seed those neighboring pixels that have similar properties to the seed (specific range of gray level) Stopping Rule for Region Growing: growing of a region should stop when no more pixels satisfy the criteria for inclusion in that region Additional criteria (besides gray-level) like size and shape can be included in region growing to obtain better segmentation 21

Region Growing Example 2 criteria for growing (including a pixel in the seed region): a) Absolute Gray-level Difference between any pixel and seed must be < 65 b) Pixels had to be 8-connected to at least one pixel in that region Region Splitting and Merge Region Split and Merge: a procedure that subdivide an image into a set of disjointed regions and later, merge and/or split the regions according to certain conditions Basic Approach to implement Region Split and Merge: Split into 4 disjoint quadrants any region R i for which P(R i ) = FALSE Merge any adjacent regions, R j and R k for which P(R j R k ) = TRUE Stop when no further merging or splitting possible 22

Region Splitting and Merge Region Splitting and Merge In MATLAB, function qtdecomp In a block, Split the block if Threshold, T = g max - g min > 0.27 ;g =gray-level 23