CSE 415 -- (c) S. Tanimoto, 2008 Image Understanding II 1 Image Understanding 2 Outline: Guzman Scene Analysis Local and Global Consistency Edge Detection.

Slides:



Advertisements
Similar presentations
Sliding Window Filters and Edge Detection Longin Jan Latecki Computer Graphics and Image Processing CIS 601 – Fall 2004.
Advertisements

Each pixel is 0 or 1, background or foreground Image processing to
Morphological Image Processing Md. Rokanujjaman Assistant Professor Dept of Computer Science and Engineering Rajshahi University.
1Ellen L. Walker Edges Humans easily understand “line drawings” as pictures.
Computer Vision Group Edge Detection Giacomo Boracchi 5/12/2007
Chapter 9 Morphological Image Processing. Preview Morphology: denotes a branch of biology that deals with the form and structure of animals and planets.
Chapter 10 Image Segmentation.
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
MSU CSE 803 Stockman Fall 2009 Vectors [and more on masks] Vector space theory applies directly to several image processing/representation problems.
Segmentation (Section 10.2)
Chapter 10 Image Segmentation.
The Segmentation Problem
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
1 MSU CSE 803 Fall 2014 Vectors [and more on masks] Vector space theory applies directly to several image processing/representation problems.
CSE (c) S. Tanimoto, 2007 Segmentation and Labeling 1 Segmentation and Labeling Outline: Edge detection Chain coding of curves Segmentation into.
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
Chapter 2. Image Analysis. Image Analysis Domains Frequency Domain Spatial Domain.
Chapter 10: Image Segmentation
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
Local invariant features Cordelia Schmid INRIA, Grenoble.
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
Digital Image Processing Chapter 9: Morphological Image Processing 5 September 2007 Digital Image Processing Chapter 9: Morphological Image Processing.
Digital Image Processing CCS331 Relationships of Pixel 1.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
Chapter 10 Image Segmentation.
Course 2 Image Filtering. Image filtering is often required prior any other vision processes to remove image noise, overcome image corruption and change.
Copyright Howie Choset, Renata Melamud, Al Costa, Vincent Lee-Shue, Sean Piper, Ryan de Jonckheere. All Rights Reserved Computer Vision.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
Morphological Image Processing การทำงานกับรูปภาพด้วยวิธีมอร์โฟโลจิคัล
CS654: Digital Image Analysis
Chapter 9: Image Segmentation
CS654: Digital Image Analysis
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.
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.
Edge Segmentation in Computer Images CSE350/ Sep 03.
TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.
Computer Vision Image Features Instructor: Dr. Sherif Sami Lecture 4.
Instructor: Mircea Nicolescu Lecture 7
BYST Morp-1 DIP - WS2002: Morphology Digital Image Processing Morphological Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Digital Image Processing
Digital Image Processing CSC331
Morphological Image Processing
Sliding Window Filters Longin Jan Latecki October 9, 2002.
Digital Image Processing CCS331 Relationships of Pixel 1.
Medical Image Analysis
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Image Segmentation – Detection of Discontinuities
Detection of discontinuity using
Image Segmentation – Edge Detection
Computer Vision Lecture 9: Edge Detection II
Dr. Chang Shu COMP 4900C Winter 2008
ECE 692 – Advanced Topics in Computer Vision
Digital Image Processing
CS Digital Image Processing Lecture 5
Image Segmentation Image analysis: First step:
Digital Image Processing
Department of Computer Engineering
Morphological Image Processing
Vision: Scene Labelling
ECE 692 – Advanced Topics in Computer Vision
Morphological Operators
Vision: Scene Labelling
IT472 Digital Image Processing
Presentation transcript:

CSE (c) S. Tanimoto, 2008 Image Understanding II 1 Image Understanding 2 Outline: Guzman Scene Analysis Local and Global Consistency Edge Detection Laplacians and Zero Crossings Segmentation into Regions Image Connected Components Gestalt Grouping Morphology

CSE (c) S. Tanimoto, 2008 Image Understanding II 2 Image Understanding 2 Outline: Guzman Scene Analysis Local and Global Consistency Edge Detection Laplacians and Zero Crossings Segmentation into Regions Image Connected Components Gestalt Grouping Morphology

CSE (c) S. Tanimoto, 2008 Image Understanding II 3 Blocks-World Scene Analysis (Adolfo Guzman, MIT AI Lab, 1967) Input: a line drawing representing a 3D scene consisting of polyhedra Output: lists of faces grouped into objects Method: (a) classify vertices, (b) link faces according to rules, (c) extract connected components of doubly linked regions.

CSE (c) S. Tanimoto, 2008 Image Understanding II 4

5 Guzman Vertex Categories ell, arrow, fork, tee, kay

CSE (c) S. Tanimoto, 2008 Image Understanding II 6 Guzman Linking Rules ell, arrow, fork, tee, kay

CSE (c) S. Tanimoto, 2008 Image Understanding II 7 Guzman Face Grouping Criterion: Two adjacent faces must be doubly linked to be considered part of the same object. E F D G C B A Obj1: (A B C) Obj2: (D E F G)

CSE (c) S. Tanimoto, 2008 Image Understanding II 8 Image Understanding 2 Outline: Guzman Scene Analysis Local and Global Consistency Edge Detection Laplacians and Zero Crossings Segmentation into Regions Image Connected Components Gestalt Grouping Morphology

CSE (c) S. Tanimoto, 2008 Image Understanding II 9 Impossible Figures Locally consistent, globally inconsistent

CSE (c) S. Tanimoto, 2008 Image Understanding II 10 Image Understanding 2 Outline: Guzman Scene Analysis Local and Global Consistency Edge Detection Laplacians and Zero Crossings Segmentation into Regions Image Connected Components Gestalt Grouping Morphology

CSE (c) S. Tanimoto, 2008 Image Understanding II 11 Edge Detection Why? Find boundaries of objects in order to compute their features: shape, area, moments, corner locations, etc. Methods: Compute measures of change in the neighborhood of each pixel. Trace boundaries Transform each neighborhood into a vector space whose basis includes "edge" vectors.

CSE (c) S. Tanimoto, 2008 Image Understanding II 12 Horizontal differences: a – b Both horiz. & vertical diffs. Roberts' cross operator (a-d) 2 +(b-c) 2 Local Edge Detectors ab ab cd

CSE (c) S. Tanimoto, 2008 Image Understanding II 13 Express each 3x3 neighborhood as a vector. N = Frei-Chen Edge Detection e h cd fg aab

CSE (c) S. Tanimoto, 2008 Image Understanding II 14 Frei-Chen Edge Det. (cont) Transform it linearly into the 9D vector space spanned by the following basis vectors (each shown in 3x3 format)

CSE (c) S. Tanimoto, 2008 Image Understanding II 15 Image Understanding 2 Outline: Guzman Scene Analysis Local and Global Consistency Edge Detection Laplacians and Zero Crossings Segmentation into Regions Image Connected Components Gestalt Grouping Morphology

CSE (c) S. Tanimoto, 2008 Image Understanding II 16 Instead of using 1 st derivatives, let's consider 2 nd derivatives. The Laplacian effectively finds subtle changes in intensity.  2 f(x,y) =  2 f(x,y)/  x 2 +  2 f(x,y)/  y 2 discrete approximation: Edge Finding with the Laplacian

CSE (c) S. Tanimoto, 2008 Image Understanding II 17 Remedy: First, smooth the signal with a Gaussian filter. g(x,y) = 1/(2  2 ) exp(-(x 2 +y 2 )/2  2 ) Then take the Laplacian. Or, directly convolve directly with a Laplacian of Gaussian (LOG). Laplacian: Very Sensitive to Noise

CSE (c) S. Tanimoto, 2008 Image Understanding II 18 The edges tend to be where the second derivative crosses 0. Zero Crossings

CSE (c) S. Tanimoto, 2008 Image Understanding II 19 Zero Crossings: Example (a) orig. (b) LoG with  = 1, (c) zero crossings. R Fischer et al.

CSE (c) S. Tanimoto, 2008 Image Understanding II 20 Image Understanding 2 Outline: Guzman Scene Analysis Local and Global Consistency Edge Detection Laplacians and Zero Crossings Segmentation into Regions Image Connected Components Gestalt Grouping Morphology

CSE (c) S. Tanimoto, 2008 Image Understanding II 21 If two neighboring pixels share a side, they are 4-adjacent. d's 4-adjacent neighbors are: b, c, e, g If two neighboring pixels share a corner, they are 8-adjacent d's 8-adjacent neighbors are: a,b,c,e,f,g,h 4- and 8-adjacency e h cd fg aab

CSE (c) S. Tanimoto, 2008 Image Understanding II 22 A set of pixels R is said to be 4-connected, provided for any p i, p j in R, there is a chain [(p i, p i' ), (p i', p i'' ),..., (p k, p j )] involving only pixels in R, and each pair in the chain is 4- adjacent. The chain may be of length 0. R is 8-connected, iff there exists such a chain where each pair is 8-adjacent. 4- and 8-connectedness

CSE (c) S. Tanimoto, 2008 Image Understanding II and 8-connected components 4-connected components of black: 4 8-connected components of black: 2 4-connected components of white: 2 8-connected components of white: 2

CSE (c) S. Tanimoto, 2008 Image Understanding II 24 "Dual approach" to edge detection. Let P be a digital image: P = {p 0, p 1,..., p n-1 } A segmentation S = {R 0, R 1,..., R m-1 } is a partition of P, such that For each i, R i is 4-connected, and R i is "uniform", and for all i,j if R i is adjacent to R j, then (R i U R j ) is not uniform. Segmentation into Regions

CSE (c) S. Tanimoto, 2008 Image Understanding II 25 Image Understanding 2 Outline: Guzman Scene Analysis Local and Global Consistency Edge Detection Laplacians and Zero Crossings Segmentation into Regions Image Connected Components Gestalt Grouping Morphology

CSE (c) S. Tanimoto, 2008 Image Understanding II 26 Can compute a segmentation if U(R) means all pixels in R have the same pixel value (e.g., intensity, color, etc.) Algorithm: Initialize a UNION-FIND ADT instance, with each pixel in its own subset. Scan the image. At each pixel p, check its neighbor r to the right. p and r have the same pixel value, determine whether FIND(p) = FIND(r), and if not, perform UNION(FIND(p), FIND(r)). Then check the pixel q below doing the same tests and possible UNION. When the scan is complete, each subset represents one 4- connected component of the image. Image Connected Components

CSE (c) S. Tanimoto, 2008 Image Understanding II 27 Image Understanding 2 Outline: Guzman Scene Analysis Local and Global Consistency Edge Detection Laplacians and Zero Crossings Segmentation into Regions Image Connected Components Gestalt Grouping Morphology

CSE (c) S. Tanimoto, 2008 Image Understanding II 28 Gestalt Grouping Identification of regions using a uniformity predicate based on wider-neighborhood features (e.g., texture).

CSE (c) S. Tanimoto, 2008 Image Understanding II 29 Gestalt Grouping

CSE (c) S. Tanimoto, 2008 Image Understanding II 30 Gestalt Grouping Texture element = “texel” Texel directionality Texel granularity Alignments of endpoints Spacing of texels Groups cue for surfaces, objects.

CSE (c) S. Tanimoto, 2008 Image Understanding II 31 Image Understanding 2 Outline: Guzman Scene Analysis Local and Global Consistency Edge Detection Laplacians and Zero Crossings Segmentation into Regions Image Connected Components Gestalt Grouping Morphology

CSE (c) S. Tanimoto, 2008 Image Understanding II 32 "Mathematical Morphology" Developed at the Ecoles des Mines, France by J. Serra, from mathematical ideas of Minkowski. Idea is to take two sets of points in space and obtain a new set. Set A: the main set. Set B: the "structuring element" Set C: the result.

CSE (c) S. Tanimoto, 2008 Image Understanding II 33 Math. Morph. Operation 1: "Erosion" Consider each point b of B to be a vector and use it to translate a copy of A getting A b Take the intersection of all the A b The result is called the erosion of A by B.

CSE (c) S. Tanimoto, 2008 Image Understanding II 34 Erosion: example A: B: 1 1 C:

CSE (c) S. Tanimoto, 2008 Image Understanding II 35 Dilation: Take Union instead of Intersection. A: B: 1 1 C:

CSE (c) S. Tanimoto, 2008 Image Understanding II 36 Opening: Erode by B, then Dilate by –B (B rotated by  ) A: B: 1 1 C:

CSE (c) S. Tanimoto, 2008 Image Understanding II 37 Closing: Dilate by B, then Erode by –B (B rotated by  ) A: B: 1 1 C: (In this example, erosion undoes the dilation.)

CSE (c) S. Tanimoto, 2008 Image Understanding II 38 Closing – another example A: B: 1 1 C: (In this example, closing fills in holes.)

CSE (c) S. Tanimoto, 2008 Image Understanding II 39 Math. Morphol. Uses Repair regions corrupted by noise; Eliminate small regions Identify holes, bays, protrusions, isthmi, peninsulas, and specific shapes such as crosses. Printed circuit board inspection (find cracks, spurious wires.) Popular primitives for writing industrial machine vision apps.