Computer and Robot Vision I

Slides:



Advertisements
Similar presentations
電腦視覺 Computer and Robot Vision I
Advertisements

Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
Digital Image Processing Lecture 12: Image Topology
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
CS 376b Introduction to Computer Vision 04 / 08 / 2008 Instructor: Michael Eckmann.
1 Binary Image Analysis Binary image analysis consists of a set of image analysis operations that are used to produce or process binary images, usually.
Objective of Computer Vision
Objective of Computer Vision
Computer Vision Basics Image Terminology Binary Operations Filtering Edge Operators.
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
1 Image Processing(IP) 1. Introduction 2. Digital Image Fundamentals 3. Image Enhancement in the spatial Domain 4. Image Enhancement in the Frequency Domain.
Chapter 10: Image Segmentation
1. Binary Image B(r,c) 2 0 represents the background 1 represents the foreground
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Machine Vision for Robots
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Recap CSC508.
G52IIP, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
CS 6825: Binary Image Processing – binary blob metrics
CS 376b Introduction to Computer Vision 02 / 22 / 2008 Instructor: Michael Eckmann.
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
1 Binary Image Analysis Binary image analysis consists of a set of image analysis operations that are used to produce or process binary images, usually.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Introduction Image geometry studies rotation, translation, scaling, distortion, etc. Image topology studies, e.g., (i) the number of occurrences.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Computer and Robot Vision II Chapter 20 Accuracy Presented by: 傅楸善 & 王林農 指導教授 : 傅楸善 博士.
CS 376b Introduction to Computer Vision 02 / 11 / 2008 Instructor: Michael Eckmann.
Computer and Robot Vision II Chapter 0 Presented by: 傅楸善 & 顏慕帆 指導教授 : 傅楸善 博士.
Low level Computer Vision 1. Thresholding 2. Convolution 3. Morphological Operations 4. Connected Component Extraction 5. Feature Extraction 1.
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
CSSE463: Image Recognition Day 9 Lab 3 (edges) due Weds, 3:25 pm Lab 3 (edges) due Weds, 3:25 pm Take home quiz due Friday, 4:00 pm. Take home quiz due.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
Course 3 Binary Image Binary Images have only two gray levels: “1” and “0”, i.e., black / white. —— save memory —— fast processing —— many features of.
Digital Image Processing CCS331 Relationships of Pixel 1.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
CSSE463: Image Recognition Day 9
COMP 9517 Computer Vision Binary Image Analysis 4/15/2018
Computer and Robot Vision I
CSSE463: Image Recognition Day 21
Mean Shift Segmentation
Computer Vision Lecture 5: Binary Image Processing
Binary Image Analysis: Part 1 Readings: Chapter 3: 3.1, 3.4, 3.8
Binary Image Analysis used in a variety of applications:
Binary Image Analysis: Part 1 Readings: Chapter 3: 3.1, 3.4, 3.8
Computer and Robot Vision I
Binary Image processing بهمن 92
Computer and Robot Vision I
Computer Vision Chapter 4
Computer and Robot Vision I
CSSE463: Image Recognition Day 9
Department of Computer Engineering
Chapter 6 Neighborhood Operators
CSSE463: Image Recognition Day 9
Computer and Robot Vision I
Computer and Robot Vision I
Computer and Robot Vision I
Binary Image Analysis used in a variety of applications:
Presentation transcript:

Computer and Robot Vision I Chapter 2 Binary Machine Vision: Thresholding and Segmentation Presented by: 傅楸善 & 顏慕帆 0933 373 485 r94922113@ntu.edu.tw 指導教授: 傅楸善 博士 Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.

2.1 Introduction binary value 1: considered part of object binary value 0: background pixel binary machine vision: generation and analysis of binary image DC & CV Lab. CSIE NTU

2.2 Thresholding if r: row, c: column I: grayscale intensity, B: binary intensity T: intensity threshold DC & CV Lab. CSIE NTU

2.2 Thresholding DC & CV Lab. CSIE NTU

2.2 Thresholding DC & CV Lab. CSIE NTU

2.2 Thresholding histogram m spans each gray level value e.g. 0 - 255 􀀀 #: operator counts the number of elements in a set DC & CV Lab. CSIE NTU

2.2 Thresholding DC & CV Lab. CSIE NTU

2.2 Thresholding DC & CV Lab. CSIE NTU

2.2 Thresholding 255 DC & CV Lab. CSIE NTU

2.2 Thresholding BNC: Bayonet Neill Concelman Connector 255 Bayonet Neill Concelman Connector (BNC) The standard connector used to connect IEEE 802.3 10Base2 coaxial cable to an MAU(媒體附著單元 (Media attachment unit)) BNC: Bayonet Neill Concelman Connector 255 DC & CV Lab. CSIE NTU

2.2 Thresholding DC & CV Lab. CSIE NTU

2.2.1 Minimizing Within-Group Variance : histogram probabilities of gray values otsu : the spatial domain of the image DC & CV Lab. CSIE NTU

2.2.1 Minimizing Within-Group Variance Within-group variance : weighted sum of group variances : probability for the group with values : variance for the group with values DC & CV Lab. CSIE NTU

2.2.1 Minimizing Within-Group Variance find which minimizes DC & CV Lab. CSIE NTU

2.2.1 Minimizing Within-Group Variance DC & CV Lab. CSIE NTU

2.2.2 Minimizing Kullback Information Distance minimize the Kullback directed divergence q1 q2: weight? mixture distribution of the two Gaussians in histogram: DC & CV Lab. CSIE NTU

2.2.2 Minimizing Kullback Information Distance : mean of distribution DC & CV Lab. CSIE NTU

2.2.2 Minimizing Kullback Information Distance DC & CV Lab. CSIE NTU

2.2.2 Minimizing Kullback Information Distance Left dark line: Otsu Right dark line: Kittler-Illingworth 255 DC & CV Lab. CSIE NTU

2.3 Connected Components Labeling Connected components analysis: connected components labeling of the binary-1 pixels property measurement of the component regions decision making All pixels that have value binary-1 and are connected to each other by a path of pixels all with value binary-1 are given the same identifying label. definition DC & CV Lab. CSIE NTU

2.3 Connected Components Labeling label: unique name or index of the region label: identifier for a potential object region connected components labeling: a grouping operation pixel property: position, gray level or brightness level region property: shape, bounding box, position, intensity statistics Term explanation Bounding box? DC & CV Lab. CSIE NTU

􀀀 2.3.1 Connected Components Operators Two 1-pixels and belong to the same connected component if there is a sequence of 1-pixels of where and is a neighbor of 􀀀 for definition DC & CV Lab. CSIE NTU

􀀀 2.3.1 Connected Components Operators 4-connected: north, south, east, west 8-connected: north, south, east, west, northeast, northwest, southeast, southwest To explain what neighborhood is Border: subset of 1-pixels also adjacent to 0-pixels DC & CV Lab. CSIE NTU

􀀀 2.3.1 Connected Components Operators example DC & CV Lab. CSIE NTU

􀀀 2.3. Connected Components Operators Rosenfeld has shown that if C is a component of 1s and D is an adjacent component of 0s and if 4-connectedness is used for 1 (/0) -pixels and 8-connectedness is used for 0 (/1) -pixels then either C surrounds D (D is a hole in C) or D surrounds C (C is a hole in D) theory DC & CV Lab. CSIE NTU

􀀀 2.2.3 Connected Components Operators Phenomenon:現象 example : DC & CV Lab. CSIE NTU

2.3.2 Connected Components Algorithms All the algorithms process a row of the image at a time All the algorithms assign new labels to the first pixel of each component and attempt to propagate the label of a pixel to right or below neighbors This process continues until the pixel marked A in row 4 encountered Principle & stop condition DC & CV Lab. CSIE NTU

2.3.2 Connected Components Algorithms example DC & CV Lab. CSIE NTU

2.3.2 Connected Components Algorithms The differences among the algorithms of three types: What label should be assigned to pixel A? How to keep track of the equivalence of two or more labels? How to use the equivalence information to complete processing? issue DC & CV Lab. CSIE NTU

2.3.3 An Iterative Algorithm initialization of each pixel to a unique label iteration of top-down followed by bottom-up passes until no change Algorithm’s flow Top-down left-right followed by bottom-up right-left DC & CV Lab. CSIE NTU

2.3.3 An Iterative Algorithm Why can’t just one iterative Jump to 35(ori) 36(after top-down)=>12與7的交界處 DC & CV Lab. CSIE NTU

2.3.4 The Classical Algorithm makes two passes but requires a large global table for equivalences performs label propagation as above when two different labels propagate to the same pixel, the smaller label propagates and equivalence entered into table equivalence classes are found by transitive closure second pass performs a translation Two top-down phase First phase: assign label and establish equ_table mid-phase: find equivalence classes Second phase: chx label according to equ_label DC & CV Lab. CSIE NTU

2.3.4 The Classical Algorithm

(2,3) (2,4) (2,6) (2,11) (2,13) (5,9) (7,10) (7,12) (7,8) (7,9) (1,12)

2.3.4 The Classical Algorithm main problem: global equivalence table may be too large for memory problem DC & CV Lab. CSIE NTU

2.3.5 A Space-Efficient Two-Pass Algorithm That Uses a Local Equivalence Table Small table stores only equivalences from current and preceding lines Maximum number of equivalences = image width Relabel each line with equivalence labels when equivalence detected Top-down then bottom-up DC & CV Lab. CSIE NTU

2.3.5 A Space-Efficient Two-Pass Algorithm That Uses a Local Equivalence Table

2.3.6 An Efficient Run-Length Implementation of the Local Table Method run-length encoding: transmits lengths of runs of zeros and ones Example: DC & CV Lab. CSIE NTU

run 1 run 2 run 7 run number Original picture Label number start and end

2 Mid-table: label/next array Left-table: EQ_CLASS array

2.3.6 An Efficient Run-Length Implementation of the Local Table Method DC & CV Lab. CSIE NTU

2.3.6 An Efficient Run-Length Implementation of the Local Table Method DC & CV Lab. CSIE NTU

2.3.6 An Efficient Run-Length Implementation of the Local Table Method DC & CV Lab. CSIE NTU

2.4 Signature Segmentation and Analysis signature: histogram of the nonzero pixels of the resulting masked image signature: a projection projections can be vertical, horizontal, diagonal, circular, radial… DC & CV Lab. CSIE NTU

2.4 Signature Segmentation and Analysis vertical projection of a segment: column between horizontal projection: row between vertical and horizontal projection define a rectangle and DC & CV Lab. CSIE NTU

2.4 Signature Segmentation and Analysis

2.4 Signature Segmentation and Analysis segment the vertical and horizontal projections treat each rectangular subimage as the image DC & CV Lab. CSIE NTU

2.4 Signature Segmentation and Analysis Magnetic ink character recognition OCR: Optical Character Recognition MICR: Magnetic Ink Character Recognition DC & CV Lab. CSIE NTU

2.4 Signature Segmentation and Analysis Diagonal projections: : from upper left to lower right : from upper right to lower left object area: sum of all the projections values in the segment DC & CV Lab. CSIE NTU

2.5 Summary when components spaced away and relatively few, use signature segmentation DC & CV Lab. CSIE NTU

Project due Oct. 4 Write a program to generate: a binary image (threshold at 128) a histogram connected components (regions with + at centroid, bounding box) DC & CV Lab. CSIE NTU