電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.

Slides:



Advertisements
Similar presentations
Applications of one-class classification
Advertisements

Word Spotting DTW.
電腦視覺 Computer and Robot Vision I
Binary Image Analysis Selim Aksoy Department of Computer Engineering Bilkent University
Document Image Processing
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Computer Vision Lecture 16: Region Representation
Each pixel is 0 or 1, background or foreground Image processing to
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
Thresholding Otsu’s Thresholding Method Threshold Detection Methods Optimal Thresholding Multi-Spectral Thresholding 6.2. Edge-based.
CS 376b Introduction to Computer Vision 04 / 08 / 2008 Instructor: Michael Eckmann.
Machinen Vision and Dig. Image Analysis 1 Prof. Heikki Kälviäinen CT50A6100 Lectures 8&9: Image Segmentation Professor Heikki Kälviäinen Machine Vision.
Processing Digital Images. Filtering Analysis –Recognition Transmission.
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.
CS 376b Introduction to Computer Vision 02 / 25 / 2008 Instructor: Michael Eckmann.
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.
Introduction to Image Processing Grass Sky Tree ? ? Review.
Chapter 10: Image Segmentation
1. Binary Image B(r,c) 2 0 represents the background 1 represents the foreground
Machine Vision for Robots
Recap CSC508.
Chap 3 : Binary Image Analysis. Counting Foreground Objects.
S EGMENTATION FOR H ANDWRITTEN D OCUMENTS Omar Alaql Fab. 20, 2014.
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.
Binary Thresholding Threshold detection Variations
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 Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
CS 376b Introduction to Computer Vision 03 / 21 / 2008 Instructor: Michael Eckmann.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
CS654: Digital Image Analysis
Mixture of Gaussians This is a probability distribution for random variables or N-D vectors such as… –intensity of an object in a gray scale image –color.
1 Research Question  Can a vision-based mobile robot  with limited computation and memory,  and rapidly varying camera positions,  operate autonomously.
CS 376b Introduction to Computer Vision 02 / 11 / 2008 Instructor: Michael Eckmann.
CSSE463: Image Recognition Day 23 Midterm behind us… Midterm behind us… Foundations of Image Recognition completed! Foundations of Image Recognition completed!
Digital Image Processing
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
CS 376b Introduction to Computer Vision 02 / 12 / 2008 Instructor: Michael Eckmann.
Image Segmentation Nitin Rane. Image Segmentation Introduction Thresholding Region Splitting Region Labeling Statistical Region Description Application.
Thresholding Foundation:. Thresholding In A: light objects in dark background To extract the objects: –Select a T that separates the objects from the.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
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.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
May 2003 SUT Color image segmentation – an innovative approach Amin Fazel May 2003 Sharif University of Technology Course Presentation base on a paper.
Digital Image Processing CCS331 Relationships of Pixel 1.
April 21, 2016Introduction to Artificial Intelligence Lecture 22: Computer Vision II 1 Canny Edge Detector The Canny edge detector is a good approximation.
COMP 9517 Computer Vision Binary Image Analysis 4/15/2018
Digital Image Processing (DIP)
Computer and Robot Vision I
CSSE463: Image Recognition Day 21
IMAGE SEGMENTATION USING THRESHOLDING
Binary Image Analysis Gokberk Cinbis
Mean Shift Segmentation
Computer Vision Lecture 5: Binary Image Processing
Binary Image Analysis: Part 1 Readings: Chapter 3: 3.1, 3.4, 3.8
CSSE463: Image Recognition Day 23
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
Computer and Robot Vision I
Department of Computer Engineering
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 Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1

Contents  Introduction  Thresholding  Connected Components Labeling  Signature Segmentation and Analysis 2

Computer and Robot Vision I 2.1 Introduction Introduction 3

Binary Machine Vision  Binary Image  Binary Value 1: Part of Object  Binary Value 0: Background Pixel  Definition of Binary Machine Vision  Generation and analysis of such a binary image 2.1 Introduction 4

Binary Machine Vision  Thresholding  It is the first step of binary machine vision  It is a labeling operation  Connected Components / Signature Analysis  They are multilevel vision grouping techniques.  They make a transformation from image pixels to more complex units. Regions Segments 2.1 Introduction 5

Computer and Robot Vision I 2.2 Thresholding Introduction 6

 What is Thresholding ?  It is a labeling operation.  It assigns a binary value to each pixel. Binary Value 1: pixels have higher intensity values Binary Value 0: pixels have higher intensity values 2.2 Thresholding 7

Introduction  Mathematical Formulation  : row and column  : gray-level intensity image  : intensity threshold  : binary intensity image Thresholding

Introduction Thresholding How to select an appropriate threshold ?

Introduction  Approaches  Global Thresholding: use a global value to make the pixel distinction in the image.  Local Thresholding: use spatial varying threshold to label the local pixels Thresholding Image

Histogram  Definition of Histogram  Histogram Probability Thresholding number of elements m spans each gray level value e.g

Histogram  Examples Thresholding

Histogram Thresholding

Histogram Thresholding T=110T=130T=150T=170

Within-Group Variance  Observations  A group is a set of pixels with intensity homogeneity.  Homogeneity is measured by the use of variance High homogeneity group has low variance Low homogeneity group has high variance  Objective  Select a dividing score such that the weighted sum of the within-group variances is minimized Thresholding

Within-Group Variance  Definition: weighted sum of group variances  : probability for the group with values  : variance for the group with values Thresholding

Within-Group Variance  Objective Formulation  Find a threshold which minimizes Thresholding

Within-Group Variance  Implementation Issue  Step1: For t=0,…,255  Step2: Compute,,, and  Step3: Compute  Step4: If is less than the value in the previous iteration Thresholding All variables should be re-compute at each iteration.

Within-Group Variance  Implementation Issue  Speed-Up Formulation Thresholding

Within-Group Variance  Implementation Issue  Speed-Up Formulation Thresholding

Within-Group Variance  Implementation Issue  Speed-Up Formulation Thresholding

Within-Group Variance  Implementation Issue  Speed-Up Formulation Thresholding

Within-Group Variance  Implementation Issue  Speed-Up Formulation Thresholding constant minimizemaximize

Within-Group Variance  Implementation Issue  Speed-Up Formulation We have recursive form to compute optimal threshold Thresholding

Within-Group Variance  Example Thresholding

Kullback Information Distance  Assumption  The observations come from a weighted mixture of two Gaussians distributions. Gaussian Distribution of Background Gaussian Distribution of Object Thresholding

Kullback Information Distance Thresholding Background Gaussian Distribution Object Gaussian Distribution

Kullback Information Distance  Objective Formulation T  Determine a threshold T that results in two Gaussian distributions which minimize Kullback divergence P(I) :P(I) : observed histogram distribution f(I) Tf(I) : a mixture of Gaussian distributions determined by T Thresholding

Kullback Information Distance  Objective Formulation  Known Parameter: Observed Histogram  Unknown Parameter: Two Gaussian Distributions Thresholding

Kullback Information Distance  Solution Derivation Thresholding Constant

Kullback Information Distance  Solution Derivation  Assumption: The modes are well separated Thresholding

Kullback Information Distance  Solution Derivation Thresholding

Kullback Information Distance  Implementation Issue  Step1: For t=0,…,255  Step2: Compute,,, and  Step3: Compute  Step4: If is less than the value in the previous iteration Thresholding

Kullback Information Distance  Example Thresholding

Kullback Information Distance Thresholding Within Group Variance (Otsu) Kullback Information (Kittler-Illingworth)

Computer and Robot Vision I 2.3 Connected Component Labeling Introduction 36

Introduction  Description  Connected Components labeling is a grouping operation.  It performs the unit change from pixel to region or segment.  All pixels are given the same identifier Have value binary 1 Connect to each other Connected Component Labeling

Introduction  Terminology  label: unique name or index of the region  connected components labeling: a grouping operation  pixel property: position, gray level or brightness level  region property: shape, bounding box, position, intensity statistics Connected Component Labeling

Connected Component Operators  Definition of Connected Component  Two pixels and belong to the same connected component if there is a sequence of 1-pixels, where are neighbor Connected Component Labeling

Connected Component Operators  Neighborhood Types Connected Component Labeling 4-connected 8-connected Original ImageConnected Components

Connected Component Algorithms  Common Features  Process a row of image at a time  Assign a new labels to the first pixel of each component.  Propagate the label of a pixel to its neighbors to the right or below it Connected Component Labeling

Connected Component Algorithms  Common Features Connected Component Labeling What label should be assigned to A How does the algorithm keep track of the equivalence of two labels How does the algorithm use the equivalence information to complete the processing

Algorithm1: Iterative Algorithm  Algorithm Steps  Step1 (Initialization): Assign an unique label to each pixel.  Step2 (Iteration) : Perform a sequence of top- down and bottom-up label propagation Connected Component Labeling Use no auxiliary storage Computational Expensive

Algorithm2: Classic Algorithm  Two-Pass Algorithm  Pass 1: Perform label assignment and label propagation Construct the equivalence relations between labels when two different labels propagate to the same pixel. Apply resolve function to find the transitive closure of all equivalence relations.  Pass 2: Perform label translation Connected Component Labeling

Algorithm2: Classic Algorithm  Example: Connected Component Labeling {2=4} {3=5} {1=5}

Algorithm2: Classic Algorithm  Example:  Resolve Function Connected Component Labeling {2=4}{3=5}{1=5}{2=4}{1=3=5} Computational Efficiency Need a lot of space to store equivalence

Computer and Robot Vision I 2.4 Signature Segmentation and Analysis Introduction 47

Introduction  Description  Signature analysis perform unit change from the pixel to the segment.  It was firstly used in character recognition  Definition of Signature  The signature, which is a projection, is the histogram of the non-zero pixels of the masked image Signature Segmentation and Analysis

Introduction  General Signatures  Vertical Projection  Horizontal Projection  Diagonal Projection Signature Segmentation and Analysis

Signature Segmentation  Steps  Thresholding : generate the binary image.  Projection Computation: compute the vertical, horizontal, or diagonal projections.  Projection Segmentation: divide the image into several segments or regions according to the signatures Signature Segmentation and Analysis

Signature Segmentation Signature Segmentation and Analysis

Signature Segmentation Signature Segmentation and Analysis

Signature Segmentation Signature Segmentation and Analysis OCR: Optical Character Recognition MICR: Magnetic Ink Character Recognition

The End Computer and Robot Vision I